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

Init medialibrary in IO threadpool

parent b8fa0368
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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