forked from mirror/monocles_chat
catch exception in getSignalingState()
(cherry picked from commit 909aa72b258db92f27f3910d978770726ef6f7d6)
This commit is contained in:
parent
97887c21b6
commit
4f104c7be5
1 changed files with 5 additions and 1 deletions
|
@ -702,7 +702,11 @@ public class WebRTCWrapper {
|
|||
}
|
||||
|
||||
public PeerConnection.SignalingState getSignalingState() {
|
||||
return requirePeerConnection().signalingState();
|
||||
try {
|
||||
return requirePeerConnection().signalingState();
|
||||
} catch (final IllegalStateException e) {
|
||||
return PeerConnection.SignalingState.CLOSED;
|
||||
}
|
||||
}
|
||||
|
||||
EglBase.Context getEglBaseContext() {
|
||||
|
|
Loading…
Add table
Reference in a new issue