handleFailedCall(failedCall:call,error:.assertionError(description:"\(TAG) missing peerconnection client in \(#function)"))
handleFailedCall(failedCall:call,error:OWSProdCallAssertionError(description:"\(TAG) missing peerconnection client in \(#function)"))
return
}
@ -1003,7 +1015,7 @@ protocol CallServiceObserver: class {
guardletcall=self.callelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
owsFail("\(TAG) call was unexpectedly nil in \(#function)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
handleFailedCurrentCall(error:OWSProdCallAssertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
return
}
@ -1057,7 +1069,7 @@ protocol CallServiceObserver: class {
guardletcall=self.callelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
owsFail("\(TAG) call was unexpectedly nil in \(#function)")
handleFailedCurrentCall(error:.assertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
handleFailedCurrentCall(error:OWSProdCallAssertionError(description:"\(TAG) call unexpectedly nil in \(#function)"))
return
}
@ -1095,7 +1107,7 @@ protocol CallServiceObserver: class {
guardletcall=self.callelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
owsFail("\(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."))
handleFailedCurrentCall(error:OWSProdCallAssertionError(description:"\(TAG) received data message, but there is no current call. Ignoring."))
return
}
@ -1107,7 +1119,7 @@ protocol CallServiceObserver: class {
guardconnected.id==call.signalingIdelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
owsFail("\(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)"))
handleFailedCurrentCall(error:OWSProdCallAssertionError(description:"\(TAG) received connected message for call with id:\(connected.id) but current call has id:\(call.signalingId)"))
return
}
@ -1122,7 +1134,7 @@ protocol CallServiceObserver: class {
guardhangup.id==call.signalingIdelse{
//Thisshouldneverhappen;returntoaknowngoodstate.
owsFail("\(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)"))
handleFailedCurrentCall(error:OWSProdCallAssertionError(description:"\(TAG) received hangup message for call with id:\(hangup.id) but current call has id:\(call.signalingId)"))
return
}
@ -1229,7 +1241,7 @@ protocol CallServiceObserver: class {