fix ConcurrentHashMap crash

This commit is contained in:
LuftVerbot 2023-11-19 15:24:35 +01:00
parent a34bc764b4
commit b1f728e54a

View file

@ -342,8 +342,9 @@ class AnimeDownloadCache(
sourceId?.let { it to SourceDirectory(dir) }
}
.toMap()
.let { ConcurrentHashMap(it) }
rootDownloadsDir.sourceDirs = sourceDirs as ConcurrentHashMap<Long, SourceDirectory>
rootDownloadsDir.sourceDirs = sourceDirs
sourceDirs.values
.map { sourceDir ->