mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
wrap unsub in pageholder in try
fixing another android 11 crash
This commit is contained in:
parent
e3e18ea775
commit
06ee5439d1
@ -288,7 +288,9 @@ class PagerPageHolder(
|
||||
}
|
||||
// Keep the Rx stream alive to close the input stream only when unsubscribed
|
||||
.flatMap { Observable.never<Unit>() }
|
||||
.doOnUnsubscribe { openStream?.close() }
|
||||
.doOnUnsubscribe {
|
||||
try { openStream?.close() } catch (e: Exception) {}
|
||||
}
|
||||
.subscribe({}, {})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user