fix crash-on-startup bug reported by Lacrocivious

This commit is contained in:
Charles Kerr 2007-08-16 20:59:09 +00:00
parent 5f5a743790
commit 5c3d45767e
1 changed files with 8 additions and 1 deletions

View File

@ -605,7 +605,14 @@ onTrackerScrapeNow( void * vt )
{
Tracker * t = (Tracker*) vt;
assert( tr_ptrArrayEmpty( t->scraping ) );
if( !tr_ptrArrayEmpty( t->scraping ) )
{
/* there's already a scrape going for this tracker...
we only one one at a time, so don't do anything yet.
when the current scrape is done, onScrapeResponse()
will call us again. */
return FALSE;
}
if( !tr_ptrArrayEmpty( t->scrapeQueue ) )
{