Commit 8d417963 authored by Geoffrey Métais's avatar Geoffrey Métais

Init medialibrary in IO threadpool

parent b8fa0368
......@@ -356,7 +356,7 @@ class MediaParsingService : Service(), DevicesDiscoveryCb, CoroutineScope {
progress.value = if (status === null) ScanProgress(parsing, discovery) else status.copy(parsing = parsing, discovery = discovery)
}
private val actions = actor<MLAction>(capacity = Channel.UNLIMITED) {
private val actions = actor<MLAction>(context = Dispatchers.IO, capacity = Channel.UNLIMITED) {
for (action in channel) when (action) {
is DiscoverStorage -> {
for (folder in Medialibrary.getBlackList()) medialibrary.banFolder(action.path + folder)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment