Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix crash on updating trackers after reading with no network (closes #4207)

Cette révision appartient à :
arkon 2020-12-29 09:21:18 -05:00
Parent 8135136c86
révision 3df98d576e

Voir le fichier

@ -673,14 +673,18 @@ class ReaderPresenter(
// We want these to execute even if the presenter is destroyed and leaks
// for a while. The view can still be garbage collected.
async {
runCatching {
service.update(track)
db.insertTrack(track).await()
}
}
} else {
null
}
}
.awaitAll()
.filter { it.isFailure }
.forEach { it.exceptionOrNull()?.let { e -> Timber.w(e) } }
}
}