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 2a8b2a0d33..015c64d4b2 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 @@ -288,7 +288,9 @@ class PagerPageHolder( } // Keep the Rx stream alive to close the input stream only when unsubscribed .flatMap { Observable.never() } - .doOnUnsubscribe { openStream?.close() } + .doOnUnsubscribe { + try { openStream?.close() } catch (e: Exception) {} + } .subscribe({}, {}) }