catch exception in getSignalingState()
This commit is contained in:
parent
63d61408e6
commit
909aa72b25
|
@ -662,7 +662,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…
Reference in a new issue