Fix call termination when muting before call is connected.
This commit is contained in:
parent
9742a212a2
commit
8ad61a52b9
1 changed files with 6 additions and 4 deletions
|
@ -492,10 +492,12 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (activePeer.getState() == CallState.CONNECTED) {
|
||||||
callManager.setAudioEnable(microphoneEnabled);
|
try {
|
||||||
} catch (CallException e) {
|
callManager.setAudioEnable(microphoneEnabled);
|
||||||
callFailure("Enabling audio failed: ", e);
|
} catch (CallException e) {
|
||||||
|
callFailure("Enabling audio failed: ", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activePeer != null) {
|
if (activePeer != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue