(trunk libT) fix r7610 bug reported by BentMyWookie

This commit is contained in:
Charles Kerr 2009-01-04 16:48:31 +00:00
parent 3c863dd37b
commit 6d21e557f5
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ expireFromList( tr_peermsgs * msgs,
struct request_list tmp = REQUEST_LIST_INIT; struct request_list tmp = REQUEST_LIST_INIT;
/* since the fifo list is sorted by time, the oldest will be first */ /* since the fifo list is sorted by time, the oldest will be first */
if( list->fifo[0].time_requested >= oldestAllowed ) if( !list->len || ( list->fifo[0].time_requested >= oldestAllowed ) )
return; return;
/* if we found one too old, start pruning them */ /* if we found one too old, start pruning them */