catch exception in getSignalingState()

This commit is contained in:
Daniel Gultsch 2022-12-24 10:55:16 +01:00
parent 63d61408e6
commit 909aa72b25

View file

@ -662,7 +662,11 @@ public class WebRTCWrapper {
}
public PeerConnection.SignalingState getSignalingState() {
try {
return requirePeerConnection().signalingState();
} catch (final IllegalStateException e) {
return PeerConnection.SignalingState.CLOSED;
}
}
EglBase.Context getEglBaseContext() {