From b1f728e54a543751d40da541ab5f5bfa25af850a Mon Sep 17 00:00:00 2001 From: LuftVerbot <97435834+LuftVerbot@users.noreply.github.com> Date: Sun, 19 Nov 2023 15:24:35 +0100 Subject: [PATCH] fix ConcurrentHashMap crash --- .../kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt index 3cb9f9078..f7616a718 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt @@ -342,8 +342,9 @@ class AnimeDownloadCache( sourceId?.let { it to SourceDirectory(dir) } } .toMap() + .let { ConcurrentHashMap(it) } - rootDownloadsDir.sourceDirs = sourceDirs as ConcurrentHashMap + rootDownloadsDir.sourceDirs = sourceDirs sourceDirs.values .map { sourceDir ->