Fix some crashes

This commit is contained in:
inorichi
2017-11-08 22:25:00 +01:00
parent a7faf445c4
commit cb357b0a16
2 changed files with 2 additions and 1 deletions
@@ -66,6 +66,7 @@ class DownloadQueue(
val pageStatusSubject = PublishSubject.create<Int>()
setPagesSubject(download.pages, pageStatusSubject)
return@flatMap pageStatusSubject
.onBackpressureBuffer()
.filter { it == Page.READY }
.map { download }