mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(DownloadQueue): Use CopyOnWriteArrayList to further prevent ConcurrentModificationException
This commit is contained in:
parent
ea9407b49d
commit
d2fdbf8717
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class DownloadQueue(
|
||||||
|
|
||||||
private val updatedRelay = PublishRelay.create<Unit>()
|
private val updatedRelay = PublishRelay.create<Unit>()
|
||||||
|
|
||||||
private val downloadListeners = mutableListOf<DownloadListener>()
|
private val downloadListeners: MutableList<DownloadListener> = CopyOnWriteArrayList<DownloadListener>()
|
||||||
|
|
||||||
private var scope = MainScope()
|
private var scope = MainScope()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue