]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Some code missed in the last commit ಠ_ಠ
authorMatt Joiner <anacrolix@gmail.com>
Sun, 6 Sep 2015 02:35:56 +0000 (12:35 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 6 Sep 2015 02:35:56 +0000 (12:35 +1000)
client.go

index 0707b8eae34ec47ed542f882309586a23fbd7229..7cb58efe168bb65d07f5d648e8623bb26c9687df 100644 (file)
--- a/client.go
+++ b/client.go
@@ -25,6 +25,7 @@ import (
        "github.com/anacrolix/missinggo"
        . "github.com/anacrolix/missinggo"
        "github.com/anacrolix/missinggo/perf"
+       "github.com/anacrolix/missinggo/pubsub"
        "github.com/anacrolix/sync"
        "github.com/anacrolix/utp"
        "github.com/bradfitz/iter"
@@ -116,6 +117,7 @@ func (cl *Client) queuePieceCheck(t *torrent, pieceIndex pp.Integer) {
                return
        }
        piece.QueuedForHash = true
+       t.publishPieceChange(int(pieceIndex))
        go cl.verifyPiece(t, pieceIndex)
 }