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

Medialibrary: Avoid double init

parent f61965ba
No related branches found
No related tags found
No related merge requests found
......@@ -429,6 +429,10 @@ class MediaParsingService : LifecycleService(), DevicesDiscoveryCb, LifecycleOwn
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