From 6b27e1473dde1712b829256886129d16e06a9426 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 12 Aug 2015 17:11:14 +1000 Subject: [PATCH] Upload after a piece completes --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 0e16becc..4d12f675 100644 --- a/client.go +++ b/client.go @@ -2693,6 +2693,7 @@ func (me *Client) pieceChanged(t *torrent, piece int) { } } conn.pieceRequestOrder.DeletePiece(int(piece)) + me.upload(t, conn) } else if t.wantPiece(piece) && conn.PeerHasPiece(piece) { t.connPendPiece(conn, int(piece)) me.replenishConnRequests(t, conn)