]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Publish piece state changes after verifying piece
authorMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 03:03:05 +0000 (14:03 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 1 Dec 2017 03:03:05 +0000 (14:03 +1100)
torrent.go

index c4abf295f647abea088ed4480eccce1480c62904..95e972616bfbb23c7527b82eec4bfe17766bdea7 100644 (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