From 95f89982dfbfa5c1eddbeaae9e2af7244ad1e982 Mon Sep 17 00:00:00 2001 From: Li Lin Date: Wed, 30 May 2018 16:56:58 +0800 Subject: [PATCH] fix: do ECClient disconnect in RTCIceConnectionStateClosed only to prevent crash. --- ErizoClient/rtc/ECClient.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ErizoClient/rtc/ECClient.m b/ErizoClient/rtc/ECClient.m index 642dd21..1cb6bef 100755 --- a/ErizoClient/rtc/ECClient.m +++ b/ErizoClient/rtc/ECClient.m @@ -260,8 +260,10 @@ - (void)peerConnection:(RTCPeerConnection *)peerConnection L_WARNING(@"RTCIceConnectionStateFailed %@", peerConnection); break; } - case RTCIceConnectionStateClosed: case RTCIceConnectionStateDisconnected: { + break; + } + case RTCIceConnectionStateClosed: { [self disconnect]; break; }