forked from mirrors/linphone-iphone
Disable core restart when switching from foreground to background mode
This commit is contained in:
parent
cd1ae4c19d
commit
a37972abaf
1 changed files with 5 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue