Skip to content
Snippets Groups Projects
Commit 1dac4737 authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Geoffrey Métais
Browse files

MediaParsingService: Use a normal dispatcher

.immediate extension can lead to close service too quickly
May help with #1197
parent 338485f6
No related branches found
No related tags found
1 merge request!452Mediaparsing dispatcher
......@@ -58,7 +58,7 @@ private const val NOTIFICATION_DELAY = 1000L
@ExperimentalCoroutinesApi
class MediaParsingService : Service(), DevicesDiscoveryCb, CoroutineScope, LifecycleOwner {
override val coroutineContext = Dispatchers.Main.immediate
override val coroutineContext = Dispatchers.Main
private val dispatcher = ServiceLifecycleDispatcher(this)
private lateinit var wakeLock: PowerManager.WakeLock
private lateinit var localBroadcastManager: LocalBroadcastManager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment