catch exception in getSignalingState()

(cherry picked from commit 909aa72b258db92f27f3910d978770726ef6f7d6)
This commit is contained in:
Daniel Gultsch 2022-12-24 10:55:16 +01:00 committed by Arne
parent 97887c21b6
commit 4f104c7be5

View file

@ -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() {