From ec9c19ce7d8ec72297c2d7ea93a9eec5424f4d9f Mon Sep 17 00:00:00 2001 From: len Date: Tue, 26 Apr 2016 14:00:22 +0200 Subject: [PATCH] Use a thread-safe list for downloads --- .../eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt index 7d3a94c2a5..27b9f12190 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt @@ -4,9 +4,9 @@ import eu.kanade.tachiyomi.data.database.models.Chapter import eu.kanade.tachiyomi.data.source.model.Page import rx.Observable import rx.subjects.PublishSubject -import java.util.* +import java.util.concurrent.CopyOnWriteArrayList -class DownloadQueue : ArrayList() { +class DownloadQueue : CopyOnWriteArrayList() { private val statusSubject = PublishSubject.create()