(trunk libt) experimental fix for the updated torrent issue reported by Lacrocivious

This commit is contained in:
Charles Kerr 2010-12-22 04:29:41 +00:00
parent 168fb2a45d
commit 28ec370476
1 changed files with 7 additions and 2 deletions

View File

@ -1592,6 +1592,13 @@ torrentStart( tr_torrent * tor )
if( setLocalErrorIfFilesDisappeared( tor ) )
return;
/* verifying right now... wait until that's done so
* we'll know what completeness to use/announce */
if( tor->verifyState != TR_VERIFY_NONE ) {
tor->startAfterVerify = TRUE;
return;
}
/* otherwise, start it now... */
tr_sessionLock( tor->session );
@ -1601,8 +1608,6 @@ torrentStart( tr_torrent * tor )
tr_torrentSetRatioMode( tor, TR_RATIOLIMIT_UNLIMITED );
}
tr_verifyRemove( tor );
/* corresponds to the peer_id sent as a tracker request parameter.
* one tracker admin says: "When the same torrent is opened and
* closed and opened again without quitting Transmission ...