catch exception in getSignalingState()
This commit is contained in:
parent
63d61408e6
commit
909aa72b25
|
@ -662,7 +662,11 @@ public class WebRTCWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PeerConnection.SignalingState getSignalingState() {
|
public PeerConnection.SignalingState getSignalingState() {
|
||||||
|
try {
|
||||||
return requirePeerConnection().signalingState();
|
return requirePeerConnection().signalingState();
|
||||||
|
} catch (final IllegalStateException e) {
|
||||||
|
return PeerConnection.SignalingState.CLOSED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EglBase.Context getEglBaseContext() {
|
EglBase.Context getEglBaseContext() {
|
||||||
|
|
Loading…
Reference in a new issue