Fix crash when deleting chapter downloads and leaving details page

This commit is contained in:
Jays2Kings 2023-10-07 12:10:52 -07:00
parent 2b9f360f1a
commit dbb50fee29

View file

@ -50,7 +50,8 @@ class DownloadQueue(
}
fun updateListeners() {
downloadListeners.forEach { it.updateDownloads() }
val listeners = downloadListeners.toList()
listeners.forEach { it.updateDownloads() }
}
fun remove(chapter: Chapter) {