Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
bugfix: fix running piece concurrent update wrong
Browse files Browse the repository at this point in the history
Signed-off-by: Starnop <[email protected]>
  • Loading branch information
starnop committed Nov 15, 2019
1 parent 592315b commit 76f2ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supernode/daemon/mgr/progress/progress_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ func updateRunningPiece(dstPIDMap *syncmap.SyncMap, srcCID, dstPID string, piece
}
return err
}
dstPIDMap.Remove(pieceNumString)

return dstPIDMap.Remove(pieceNumString)
return nil
}

// updatePieceBitSet adds a new piece for srcCID when it successfully downloads the piece.
Expand Down

0 comments on commit 76f2ed4

Please sign in to comment.