]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Publish changes in piece hashing state
authorMatt Joiner <anacrolix@gmail.com>
Sat, 6 Feb 2016 14:21:12 +0000 (01:21 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 6 Feb 2016 14:21:12 +0000 (01:21 +1100)
client.go

index 149fc71acab99bd88b609de28c9edabf426a8fc8..7d115467dc8104df2eec504d1fcbaf96b0a3b20c 100644 (file)
--- a/client.go
+++ b/client.go
@@ -2517,10 +2517,12 @@ func (cl *Client) verifyPiece(t *torrent, piece int) {
                cl.event.Wait()
        }
        p.QueuedForHash = false
+       t.publishPieceChange(piece)
        if t.isClosed() || t.pieceComplete(piece) {
                return
        }
        p.Hashing = true
+       t.publishPieceChange(piece)
        cl.mu.Unlock()
        sum := t.hashPiece(piece)
        cl.mu.Lock()