Ignore:
Timestamp:
Oct 7, 2007, 4:14:34 AM (15 years ago)
Author:
charles
Message:

fix John_Clay's ptrarray.c:201 crash. (maybe.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r3295 r3308  
    552552{
    553553    Torrent * tor = (Torrent *) vtor;
    554     if( trackerSupportsScrape( tor->tracker ) ) {
    555         tr_ptrArrayInsertSorted( tor->tracker->scrapeQueue, tor, torrentCompare );
     554    if( trackerSupportsScrape( tor->tracker ) )
     555    {
     556        if( tr_ptrArrayFindSorted( tor->tracker->scrapeQueue, tor, torrentCompare) == NULL )
     557            tr_ptrArrayInsertSorted( tor->tracker->scrapeQueue, tor, torrentCompare );
    556558        tr_trackerScrapeSoon( tor->tracker );
    557559    }
Note: See TracChangeset for help on using the changeset viewer.