remove overzealous assert

pull/1/head
Michael Kirk 8 years ago
parent 2a4e113c82
commit 39e5875a36

@ -1043,10 +1043,8 @@ protocol CallServiceObserver: class {
AssertIsOnMainThread()
guard let call = self.call else {
// This should never happen; return to a known good state.
owsFail("\(TAG) call was unexpectedly nil in \(#function)")
OWSProdError(OWSAnalyticsEvents.callServiceCallMissing(), file:#file, function:#function, line:#line)
handleFailedCurrentCall(error: CallError.assertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
// This can happen after a call has ended. Reproducible on iOS11, when the other party ends the call.
Logger.info("\(TAG) ignoring mute request for obsolete call")
return
}

Loading…
Cancel
Save