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

Medialibrary: Avoid double init

(cherry picked from commit b1c99f29)
parent 9f01f3b5
No related branches found
No related tags found
No related merge requests found
......@@ -421,6 +421,10 @@ class MediaParsingService : Service(), DevicesDiscoveryCb, CoroutineScope, Lifec
medialibrary.discover(action.path)
}
is Init -> {
if (medialibrary.isInitiated) {
exitCommand()
return@actor
}
val context = this@MediaParsingService
var shouldInit = !dbExists()
val initCode = medialibrary.init(context)
......
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