Ticket #395 (ensure file exists when starting)
This commit is contained in:
parent
8ed391f18b
commit
515d04de1a
|
@ -1028,6 +1028,9 @@ tr_torrentStart( tr_torrent * tor )
|
||||||
|
|
||||||
if( !tor->isRunning )
|
if( !tor->isRunning )
|
||||||
{
|
{
|
||||||
|
if( !tor->uncheckedPieces )
|
||||||
|
tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount );
|
||||||
|
tr_fastResumeLoad( tor, tor->uncheckedPieces, tor->destination, FALSE );
|
||||||
tor->isRunning = 1;
|
tor->isRunning = 1;
|
||||||
tr_ioRecheckAdd( tor, checkAndStartCB );
|
tr_ioRecheckAdd( tor, checkAndStartCB );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue