libT) fix another r7234 bug reported by John_Clay

This commit is contained in:
Charles Kerr 2008-12-02 19:38:46 +00:00
parent c414377c1a
commit 341b40f192
1 changed files with 3 additions and 1 deletions

View File

@ -791,9 +791,11 @@ static void
cancelAllRequestsToClient( tr_peermsgs * msgs )
{
struct peer_request req;
const int mustSendCancel = tr_peerIoSupportsFEXT( msgs->io );
while( popNextRequest( msgs, &req ) )
protocolSendReject( msgs, &req );
if( mustSendCancel )
protocolSendReject( msgs, &req );
}
void