(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:
Charles Kerr 2009-11-22 00:52:11 +00:00
parent fbf0e3a99a
commit ec08e333a2
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}