Ticket #395 (ensure file exists when starting)

This commit is contained in:
Charles Kerr 2007-10-27 14:17:51 +00:00
parent 8ed391f18b
commit 515d04de1a
1 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,9 @@ tr_torrentStart( tr_torrent * tor )
if( !tor->isRunning )
{
if( !tor->uncheckedPieces )
tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount );
tr_fastResumeLoad( tor, tor->uncheckedPieces, tor->destination, FALSE );
tor->isRunning = 1;
tr_ioRecheckAdd( tor, checkAndStartCB );
}