Fixed the crash on downloading
This commit is contained in:
LooKeR 2021-10-13 07:32:10 +05:30 committed by GitHub
parent 6fe4c1688f
commit c1fc08eac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,7 +445,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.observeOn(AndroidSchedulers.mainThread())
.subscribe { result, throwable ->
currentTask = null
throwable.printStackTrace()
throwable?.printStackTrace()
if (result == null || !result.success) {
showNotificationError(
task,