Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix some crashes

Cette révision appartient à :
inorichi 2017-11-08 22:25:00 +01:00
Parent a7faf445c4
révision cb357b0a16
2 fichiers modifiés avec 2 ajouts et 1 suppressions

Voir le fichier

@ -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 }

Voir le fichier

@ -39,11 +39,11 @@ class LibraryMangaUrlFetcher(private val networkFetcher: DataFetcher<InputStream
// Copy the file and rename to the original.
data.use { output.use { data.copyTo(output) } }
tmpFile.renameTo(file)
loadFromFile(callback)
} catch (e: Exception) {
tmpFile.delete()
callback.onLoadFailed(e)
}
loadFromFile(callback)
} else {
callback.onLoadFailed(Exception("Null data"))
}