diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt index 8939d01fff..148e26818e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt @@ -408,6 +408,11 @@ class PagerPageHolder( openStream?.close() } catch (e: Exception) {} } + .doOnError { + try { + openStream?.close() + } catch (e: Exception) {} + } .subscribe({}, {}) }