mirror of
https://github.com/transmission/transmission
synced 2025-02-02 12:32:54 +00:00
(trunk libT) fix a stupid trunk-only bug that messed up which peer requests we responded to. maybe this has something to do with the slower speeds Rolcol's seeing?
This commit is contained in:
parent
fbf0e3a99a
commit
ec08e333a2
1 changed files with 5 additions and 1 deletions
|
@ -723,7 +723,11 @@ popNextRequest( tr_peermsgs * msgs, struct peer_request * setme )
|
|||
return FALSE;
|
||||
|
||||
*setme = msgs->peerAskedFor[0];
|
||||
memmove( msgs->peerAskedFor, msgs->peerAskedFor + 1, --msgs->peerAskedForCount );
|
||||
|
||||
memmove( msgs->peerAskedFor,
|
||||
msgs->peerAskedFor + 1,
|
||||
sizeof( struct peer_request ) * --msgs->peerAskedForCount );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue