Index: webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm |
index 99a0db3d76ab86e5219984b8f8646d6b3eea2aec..428eb2496f5cceaad1e754b8bb19197de19c1005 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm |
@@ -232,6 +232,9 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved( |
nullptr, |
nullptr, |
_observer.get()); |
+ if (!_peerConnection) { |
+ return nil; |
+ } |
_localStreams = [[NSMutableArray alloc] init]; |
_delegate = delegate; |
} |