Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: issue #415#425 #485

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhangchuanchuan
Copy link

  1. 单个下载线程下载完成后,remove掉了outputStreamMap中的outputstream。没有更新noSyncLengthMap。
  2. 获取noSyncLengthMap的size后的逻辑,noSyncLengthMap和outputStreamMap也可能已经变化。

因此:1. 加入同步锁,在同步方法中close流和remove,2. 对map的读操作也添加锁。

@angxb-ANGXB
Copy link

大佬可以发一下arr吗,版本太老拉取不了):

klxiaoniu added a commit to klxiaoniu/okdownload that referenced this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants