diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/cache/ChapterCache.kt b/app/src/main/java/eu/kanade/tachiyomi/data/cache/ChapterCache.kt index 361f710b8..9842a8ff0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/cache/ChapterCache.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/cache/ChapterCache.kt @@ -128,7 +128,7 @@ class ChapterCache(private val context: Context) { */ fun isImageInCache(imageUrl: String): Boolean { return try { - diskCache.get(DiskUtil.hashKeyForDisk(imageUrl)) != null + diskCache.get(DiskUtil.hashKeyForDisk(imageUrl)).use { it != null } } catch (e: IOException) { false }