From eee3ecdbbc3678f9970ea8d37d7044c4152375e6 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sat, 20 May 2006 12:11:27 +0000 Subject: [PATCH] BitTorrent: Remove superfluous check and assignment unchoke_bittorrent_peer checks and clears peer->remote.choked, so do not do so in the caller. --- src/protocol/bittorrent/connection.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/protocol/bittorrent/connection.c b/src/protocol/bittorrent/connection.c index b6ad61ec3..c0d4423aa 100644 --- a/src/protocol/bittorrent/connection.c +++ b/src/protocol/bittorrent/connection.c @@ -114,10 +114,7 @@ update_bittorrent_connection_state(struct connection *conn) continue; if (min_uploads < max_uploads) { - if (peer->remote.choked) - unchoke_bittorrent_peer(peer); - - peer->remote.choked = 0; + unchoke_bittorrent_peer(peer); /* Uninterested peers are not counted as uploads. */ if (peer->remote.interested)