mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
fix error on download files that does not allow resume and can't be concurrent
This commit is contained in:
parent
30e86011e9
commit
44d2936767
@ -313,7 +313,7 @@ class DownloadJob(
|
||||
val inactivePart =
|
||||
kotlin.runCatching { mutableInactivePartDownloaderList.removeAt(0) }.getOrNull()
|
||||
if (inactivePart != null) return inactivePart
|
||||
if (downloadManager.settings.dynamicPartCreationMode) {
|
||||
if (supportsConcurrent && downloadManager.settings.dynamicPartCreationMode) {
|
||||
synchronized(partSplitLock) {
|
||||
val candidates = getPartDownloaderList()
|
||||
.toList()
|
||||
|
Loading…
x
Reference in New Issue
Block a user