(trunk libT) add a magnet link check to deleteLocalData(). Thanks to plaes for reporting this issue.

This commit is contained in:
Jordan Lee 2011-09-16 23:08:35 +00:00
parent e2240e0831
commit 46154e7309
1 changed files with 4 additions and 0 deletions

View File

@ -2748,6 +2748,10 @@ deleteLocalData( tr_torrent * tor, tr_fileFunc func )
const void * const vstrcmp = strcmp;
const char * const top = tor->currentDir;
/* if it's a magnet link, there's nothing to move... */
if( !tr_torrentHasMetadata( tor ) )
return;
/***
**** Move the local data to a new tmpdir
***/