diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index a8bfc30bd..bd5cdf888 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -443,9 +443,11 @@ class TelecomManager: ObservableObject { } else { DispatchQueue.main.async { self.remoteConfVideo = false - let remoteConfVideoTmp = call.currentParams!.videoEnabled && call.currentParams!.videoDirection == .SendRecv || call.currentParams!.videoDirection == .RecvOnly - DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { - self.remoteConfVideo = remoteConfVideoTmp + if call.currentParams != nil { + let remoteConfVideoTmp = call.currentParams!.videoEnabled && call.currentParams!.videoDirection == .SendRecv || call.currentParams!.videoDirection == .RecvOnly + DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { + self.remoteConfVideo = remoteConfVideoTmp + } } } }