mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
fix: piece下载死锁
This commit is contained in:
1 parent
ee4ff7dd8b
commit
b0bd2a776a
2 files changed
+2
-2
No files matched your search
@@ -212,6 +212,8 @@ func (pc *peerConn) downloadPiece(index int) error {
|
||||
select {
|
||||
case pc.blockQueueCh <- nil:
|
||||
break
|
||||
case err := <-pc.downloadedCh:
|
||||
return err
|
||||
case err := <-pc.disconnectCh:
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user