Don't crash when pausing a torrent that is checking files

(refs http://transmission.m0k.org/forum/viewtopic.php?p=2445#2445)
This commit is contained in:
Eric Petit 2006-06-20 14:29:12 +00:00
parent b49d206a1a
commit e1cf898983
1 changed files with 1 additions and 1 deletions

View File

@ -334,6 +334,7 @@ void tr_torrentStart( tr_torrent_t * tor )
}
tor->status = TR_STATUS_CHECK;
tor->tracker = tr_trackerInit( tor );
tor->date = tr_date();
tor->die = 0;
@ -596,7 +597,6 @@ static void downloadLoop( void * _tor )
tor->io = tr_ioInit( tor );
tor->status = tr_cpIsSeeding( tor->completion ) ?
TR_STATUS_SEED : TR_STATUS_DOWNLOAD;
tor->tracker = tr_trackerInit( tor );
while( !tor->die )
{