fix John_Clay's ptrarray.c:201 crash. (maybe.)
This commit is contained in:
parent
d9e3272306
commit
2381279da6
|
@ -551,7 +551,9 @@ static int
|
|||
onTorrentScrapeNow( void * vtor )
|
||||
{
|
||||
Torrent * tor = (Torrent *) vtor;
|
||||
if( trackerSupportsScrape( tor->tracker ) ) {
|
||||
if( trackerSupportsScrape( tor->tracker ) )
|
||||
{
|
||||
if( tr_ptrArrayFindSorted( tor->tracker->scrapeQueue, tor, torrentCompare) == NULL )
|
||||
tr_ptrArrayInsertSorted( tor->tracker->scrapeQueue, tor, torrentCompare );
|
||||
tr_trackerScrapeSoon( tor->tracker );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue