Upload after a piece completes

This commit is contained in:
Matt Joiner 2015-08-12 17:11:14 +10:00
parent 0f606a2d24
commit 6b27e1473d
1 changed files with 1 additions and 0 deletions

View File

@ -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)