assertionFailure("\(TAG) peerConnectionClient was unexpectedly nil in \(#function)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) peerConnectionClient unexpectedly nil in \(#function)"))
return
}
guardletcall=self.callelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
assertionFailure("\(TAG) call was unexpectedly nil in \(#function)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
return
}
@ -982,6 +991,7 @@ protocol CallServiceObserver: class {
guardletcall=self.callelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
assertionFailure("\(TAG) received data message, but there is no current call. Ignoring.")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) received data message, but there is no current call. Ignoring."))
return
}
@ -993,6 +1003,7 @@ protocol CallServiceObserver: class {
guardconnected.id==call.signalingIdelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
assertionFailure("\(TAG) received connected message for call with id:\(connected.id) but current call has id:\(call.signalingId)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) received connected message for call with id:\(connected.id) but current call has id:\(call.signalingId)"))
return
}
@ -1007,12 +1018,14 @@ protocol CallServiceObserver: class {
guardhangup.id==call.signalingIdelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
assertionFailure("\(TAG) received hangup message for call with id:\(hangup.id) but current call has id:\(call.signalingId)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) received hangup message for call with id:\(hangup.id) but current call has id:\(call.signalingId)"))
return
}
guardletthread=self.threadelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
assertionFailure("\(TAG) current contact thread is unexpectedly nil when receiving hangup DataChannelMessage")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) current contact thread is unexpectedly nil when receiving hangup DataChannelMessage"))