From a37972abaf5700ee57106591881011d68d7c564b Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Fri, 19 Apr 2024 10:03:13 +0200 Subject: [PATCH] Disable core restart when switching from foreground to background mode --- Linphone/Core/CoreContext.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index a886f426e..30adf40a9 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -286,7 +286,7 @@ final class CoreContext: ObservableObject { Log.info("App is in foreground, PUBLISHING presence as Online") self.updatePresence(core: self.mCore, presence: ConsolidatedPresence.Online) - try? self.mCore.start() + //try? self.mCore.start() } } @@ -300,7 +300,10 @@ final class CoreContext: ObservableObject { // Flexisip will handle the Busy status depending on other devices self.updatePresence(core: self.mCore, presence: ConsolidatedPresence.Offline) // self.mCore.iterate() - self.mCore.stop() + + if self.mCore.currentCall == nil { + //self.mCore.stop() + } } }