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:
parent
cbb507a6b5
commit
fe07757574
@ -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(). */
|
||||||
|
Loading…
Reference in New Issue
Block a user