From 0c60e299343b154829b639df756426886c3c8651 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 17 Aug 2007 03:13:42 +0000 Subject: [PATCH] whee --- libtransmission/tracker.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index 067b8bda3..e95121274 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -42,10 +42,10 @@ #define DEFAULT_ANNOUNCE_INTERVAL_MSEC (MINUTES_TO_MSEC(20)) /* this is how long we'll leave a scrape request hanging before timeout */ -#define SCRAPE_TIMEOUT_INTERVAL_SEC 8 +#define SCRAPE_TIMEOUT_INTERVAL_SEC 10 /* this is how long we'll leave a tracker request hanging before timeout */ -#define REQ_TIMEOUT_INTERVAL_SEC 8 +#define REQ_TIMEOUT_INTERVAL_SEC 15 /* the number of peers that is our goal */ #define NUMWANT 150 @@ -606,7 +606,7 @@ onTrackerScrapeNow( void * vt ) { Tracker * t = (Tracker*) vt; - assert( !tr_ptrArrayEmpty( t->scraping ) ); + assert( tr_ptrArrayEmpty( t->scraping ) ); if( !tr_ptrArrayEmpty( t->scrapeQueue ) ) { @@ -971,8 +971,9 @@ void tr_trackerStart( Torrent * tor ) { tr_peerIdNew( tor->peer_id, sizeof(tor->peer_id) ); - assert( !tor->reannounceTag && "torrent's already started!" ); - sendTrackerRequest( tor, "started" ); + + if( !tor->reannounceTag ) + sendTrackerRequest( tor, "started" ); } void