Skip to content

Commit

Permalink
fix: clean running piece done (#3308)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ma <[email protected]>
  • Loading branch information
jim3ma authored Jun 6, 2024
1 parent 0ce78dd commit 84fb133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/daemon/peer/peertask_conductor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ func (pt *peerTaskConductor) downloadPiece(workerID int32, request *DownloadPiec

var cleanRunningPieceDone bool
cleanRunningPiece := func() {
if cleanRunningPieceDone {
if !cleanRunningPieceDone {
cleanRunningPieceDone = true
pt.runningPiecesLock.Lock()
pt.runningPieces.Clean(request.piece.PieceNum)
Expand Down

0 comments on commit 84fb133

Please sign in to comment.