mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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--;
|
||||
|
||||
} else {
|
||||
if (!peer->remote.choked)
|
||||
choke_bittorrent_peer(peer);
|
||||
|
||||
peer->remote.choked = 1;
|
||||
choke_bittorrent_peer(peer);
|
||||
}
|
||||
|
||||
/* Can remove the peer so we use foreachsafe(). */
|
||||
|
Loading…
Reference in New Issue
Block a user