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

BitTorrent: Remove a superfluous check and assignment

choke_bittorrent_peer checks and sets peer->remote.choked,
so do not do it again in the caller.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-05-20 12:07:14 +00:00 committed by Miciah Dashiel Butler Masters
parent cbb507a6b5
commit fe07757574

View File

@ -124,10 +124,7 @@ update_bittorrent_connection_state(struct connection *conn)
max_uploads--; max_uploads--;
} else { } else {
if (!peer->remote.choked)
choke_bittorrent_peer(peer); choke_bittorrent_peer(peer);
peer->remote.choked = 1;
} }
/* Can remove the peer so we use foreachsafe(). */ /* Can remove the peer so we use foreachsafe(). */