(trunk libT) fix r7610 bug reported by BentMyWookie
This commit is contained in:
parent
3c863dd37b
commit
6d21e557f5
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue