Publish piece state changes after verifying piece

This commit is contained in:
Matt Joiner 2017-12-01 14:03:05 +11:00
parent eed0743d4e
commit 2daa604eb2
1 changed files with 1 additions and 0 deletions

View File

@ -1552,6 +1552,7 @@ func (t *Torrent) verifyPiece(piece int) {
cl.mu.Lock()
p.hashing = false
t.pieceHashed(piece, sum == p.hash)
t.publishPieceChange(piece)
}
// Return the connections that touched a piece, and clear the entry while