1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

BitTorrent: Remove superfluous check and assignment

unchoke_bittorrent_peer checks and clears peer->remote.choked,
so do not do so in the caller.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-05-20 12:11:27 +00:00 committed by Miciah Dashiel Butler Masters
parent fe07757574
commit eee3ecdbbc

View File

@ -114,10 +114,7 @@ update_bittorrent_connection_state(struct connection *conn)
continue; continue;
if (min_uploads < max_uploads) { if (min_uploads < max_uploads) {
if (peer->remote.choked) unchoke_bittorrent_peer(peer);
unchoke_bittorrent_peer(peer);
peer->remote.choked = 0;
/* Uninterested peers are not counted as uploads. */ /* Uninterested peers are not counted as uploads. */
if (peer->remote.interested) if (peer->remote.interested)