fix unreasonable ending call actions

pull/560/head
Ryan Zhao 3 years ago
parent 4b38f8b3b6
commit 4560f7e122

@ -103,6 +103,7 @@ public final class SessionCallManager: NSObject {
public func reportCurrentCallEnded(reason: CXCallEndedReason?) {
guard let call = currentCall else { return }
invalidateTimeoutTimer()
if let reason = reason {
self.provider.reportCall(with: call.callID, endedAt: nil, reason: reason)
switch (reason) {

Loading…
Cancel
Save