When queuing a piece for hashing after receiving a chunk, clear all the dirty chunks
This should fix a bug triggered by storage inconsistencies.
This commit is contained in:
parent
25cf92502d
commit
898db894e0
@ -1080,6 +1080,7 @@ func (c *connection) receiveChunk(msg *pp.Message) {
|
||||
// the piece is still wanted, because if it is queued, it won't be wanted.
|
||||
if t.pieceAllDirty(index) {
|
||||
t.queuePieceCheck(int(req.Index))
|
||||
t.pendAllChunkSpecs(index)
|
||||
}
|
||||
|
||||
if c.peerTouchedPieces == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user