diff --git a/supernode/daemon/mgr/progress/progress_util.go b/supernode/daemon/mgr/progress/progress_util.go index d7dcef232..326928ffc 100644 --- a/supernode/daemon/mgr/progress/progress_util.go +++ b/supernode/daemon/mgr/progress/progress_util.go @@ -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.