Skip to content

FIX: issue #415#425 - #485

Open
zhangchuanchuan wants to merge 1 commit into
lingochamp:masterfrom
zhangchuanchuan:master
Open

FIX: issue #415#425#485
zhangchuanchuan wants to merge 1 commit into
lingochamp:masterfrom
zhangchuanchuan:master

Conversation

@zhangchuanchuan

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

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

@axb996

axb996 commented Jan 4, 2024

Copy link
Copy Markdown

大佬可以发一下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.

2 participants