This commit is contained in:
FooIbar authored and tarsin committed 2023-02-15 08:46:30 +08:00
1 parent b97eff4284
commit f7f54692a7
1 file changed
+1
@@ -88,6 +88,7 @@ class SpiderQueenWorker(private val queen: SpiderQueen) : CoroutineScope {
fun launch(index: Int, force: Boolean = false) {
check(index in 0 until size)
if (!isDownloadMode) synchronized(mFetcherJobMap) { doLaunchDownloadJob(index, force) }
if (force) decoder.cancel(index)
decoder.launch(index)
}