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:
parent
fe07757574
commit
eee3ecdbbc
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user