fix tracker crash reported by bmw

This commit is contained in:
Charles Kerr 2007-09-29 15:05:20 +00:00
parent dad333ceec
commit 4c990b2a7d
1 changed files with 1 additions and 1 deletions

View File

@ -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;