mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
No longer need to do the iterate ourselves, the SDK can handle it on the proper thread now
This commit is contained in:
parent
1b2f6f4e3d
commit
fe3a448231
1 changed files with 1 additions and 14 deletions
|
|
@ -112,24 +112,11 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
|
|||
coreThread = Handler(looper)
|
||||
|
||||
core = Factory.instance().createCoreWithConfig(corePreferences.config, context)
|
||||
core.isAutoIterateEnabled = false
|
||||
core.isAutoIterateEnabled = true
|
||||
core.addListener(coreListener)
|
||||
|
||||
core.friendsDatabasePath = corePreferences.friendsDatabasePath
|
||||
|
||||
val timer = Timer("Linphone core.iterate() scheduler")
|
||||
timer.schedule(
|
||||
object : TimerTask() {
|
||||
override fun run() {
|
||||
coreThread.post {
|
||||
core.iterate()
|
||||
}
|
||||
}
|
||||
},
|
||||
0,
|
||||
50
|
||||
)
|
||||
|
||||
computeUserAgent()
|
||||
|
||||
core.start()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue