From 16da763e5eb529c68ae72b314f6786032132936c Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Thu, 24 Apr 2025 12:03:57 +0200 Subject: [PATCH] Enable Auto-Iteration --- Linphone/Core/CoreContext.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index 61bbb8900..bda7f7714 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -81,6 +81,7 @@ final class CoreContext: ObservableObject { } func initialiseCore() throws { + Log.info("Initialising core 0000") #if USE_CRASHLYTICS FirebaseApp.configure() #endif @@ -357,12 +358,8 @@ final class CoreContext: ObservableObject { }) self.mCore.addDelegate(delegate: self.mCoreDelegate) - self.mIterateSuscription = Timer.publish(every: 0.02, on: .main, in: .common) - .autoconnect() - .receive(on: coreQueue) - .sink { _ in - self.mCore.iterate() - } + self.mCore.autoIterateEnabled = true + try? self.mCore.start() } }