Changeset 1059 for trunk/libtransmission


Ignore:
Timestamp:
Nov 9, 2006, 4:38:32 AM (15 years ago)
Author:
livings124
Message:

Don't request more peers if stopping (or changing ports).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r1001 r1059  
    238238    uint64_t       up;
    239239    char         * start;
     240    int            numwant = 50;
    240241
    241242    down = tor->downloadedCur;
     
    259260    {
    260261        event = "&event=stopped";
     262        numwant = 0;
    261263    }
    262264    else
     
    286288                          "left=%"PRIu64"&"
    287289                          "compact=1&"
    288                           "numwant=50&"
     290                          "numwant=%d&"
    289291                          "key=%s"
    290292                          "%s",
    291293                          inf->trackerAnnounce, start, tor->hashString, tc->id,
    292                           tc->bindPort, up, down, left, tor->key, event );
     294                          tc->bindPort, up, down, left, numwant, tor->key, event );
    293295}
    294296
Note: See TracChangeset for help on using the changeset viewer.