From 4c990b2a7d284a81b7095cdf2de4fd5054e424d4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 29 Sep 2007 15:05:20 +0000 Subject: [PATCH] fix tracker crash reported by bmw --- libtransmission/tracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index 5c67242ac..4eb66cb57 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -949,7 +949,7 @@ onTrackerResponse( struct evhttp_request * req, void * vtor ) else if( reannounceInterval > 0 ) { tr_dbg( "torrent '%s' reannouncing in %d seconds", tor->torrent->info.name, (reannounceInterval/1000) ); - assert( tor->reannounceTimer == NULL ); + tr_timerFree( &tor->reannounceTimer ); tor->reannounceTimer = tr_timerNew( tor->tracker->handle, onReannounceNow, tor, reannounceInterval ); tor->manualAnnounceAllowedAt = tr_date() + MANUAL_ANNOUNCE_INTERVAL_MSEC;