From 096c870029533198d653ab4697aa34b720f8c5f2 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 7 Feb 2016 21:56:59 +1100 Subject: [PATCH] Fix overpublishing of piece state change during hashing --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 16276705..5429dd87 100644 --- a/client.go +++ b/client.go @@ -2511,8 +2511,8 @@ func (cl *Client) verifyPiece(t *torrent, piece int) { cl.event.Wait() } p.QueuedForHash = false - t.publishPieceChange(piece) if t.isClosed() || t.pieceComplete(piece) { + t.publishPieceChange(piece) return } p.Hashing = true -- 2.48.1