lingochamp / okdownload

A Reliable, Flexible, Fast and Powerful download engine.
Apache License 2.0
5.19k stars 776 forks source link

java.util.ConcurrentModificationException #435

Closed kienvn closed 4 years ago

kienvn commented 4 years ago

OkDownload Version

v1.0.7

Problem Describe

Add over 2000 links to queue download. Use downloadDispatcher.setMaxParallelRunningCount(256); Then call OkDownload.with().downloadDispatcher().cancelAll() when downloading.

Log

java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.next(ArrayList.java:860)
    at com.liulishuo.okdownload.core.dispatcher.DownloadDispatcher.cancelAll(DownloadDispatcher.java:187)