From 0cc37a366ef39ac7778fd1c1e0a7c561ec75d211 Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Wed, 11 Oct 2023 16:16:30 -0400 Subject: [PATCH] calls: remove pending call upon timeout Remove a call from the list of pending calls if a connection has not been established by the time the timeout period expires. Change-Id: Ibfe66291ff0b57e1296009cf2803baa07a35dd3a --- Ring/Ring/Services/CallsProviderService.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ring/Ring/Services/CallsProviderService.swift b/Ring/Ring/Services/CallsProviderService.swift index a75fab5a9..1015473eb 100644 --- a/Ring/Ring/Services/CallsProviderService.swift +++ b/Ring/Ring/Services/CallsProviderService.swift @@ -83,6 +83,8 @@ extension CallsProviderService { let transaction = CXTransaction(action: endCallAction) self.requestTransaction(transaction) } + } else if let call = getUnhandeledCall(UUID: callUUID) { + unhandeledCalls.remove(call) } // Send request end call to CallKit. let endCallAction = CXEndCallAction(call: callUUID) -- GitLab