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

Commit

Permalink
Merge pull request #1081 from Starnop/concurrent-wrong
Browse files Browse the repository at this point in the history
bugfix: fix running piece concurrent update wrong
  • Loading branch information
lowzj authored Nov 15, 2019
2 parents 17187dc + 76f2ed4 commit aed9962
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 aed9962

Please sign in to comment.