The Wayback Machine - https://web.archive.org/web/20200604062428/https://github.com/cfpp2p/transmission/commit/c81be4700920ead21771f2fb2f6e2f099896a02d
Skip to content
Permalink
Browse files

magnet download not verified for existing data fixed #4089

  • Loading branch information
cfp
cfp committed Oct 17, 2013
1 parent 8f69610commit c81be4700920ead21771f2fb2f6e2f099896a02d
Showing with 13 additions and 1 deletion.
  1. +4 −1 libtransmission/torrent-magnet.c
  2. +7 −0 libtransmission/torrent.c
  3. +2 −0 libtransmission/torrent.h
@@ -299,7 +299,10 @@ tr_torrentSetMetadataPiece( tr_torrent * tor, int piece, const void * data, in
{
incompleteMetadataFree( tor->incompleteMetadata );
tor->incompleteMetadata = NULL;
if( tor->preFetchMagnet ) tor->isStopping = true;
tor->isStopping = true;
tor->magnetVerify = true;
tor->startAfterVerify = !tor->preFetchMagnet;
tor->preFetchMagnet = false;
}
else/* drat. */
{
@@ -1967,6 +1967,12 @@ stopTorrent( void * vtor )
torrentSetQueued( tor, false );

tr_torrentUnlock( tor );

if( tor->magnetVerify ) {
tor->magnetVerify = false;
tr_torinf( tor, "Magnet Verify" );
tr_torrentVerify( tor );
}
}

void
@@ -2043,6 +2049,7 @@ closeTorrent( void * vtor )

tr_torinf( tor, "%s", _( "Removing torrent" ) );

tor->magnetVerify = false;
stopTorrent( tor );

if( tor->isDeleting )
@@ -250,6 +250,8 @@ struct tr_torrent
bool isDirty;
bool isQueued;

bool magnetVerify;

bool infoDictOffsetIsCached;

uint16_t maxConnectedPeers;

0 comments on commit c81be47

Please sign in to comment.
You can’t perform that action at this time.
close