(trunk libT) add a magnet link check to deleteLocalData(). Thanks to plaes for reporting this issue.
This commit is contained in:
parent
e2240e0831
commit
46154e7309
|
@ -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
|
||||
***/
|
||||
|
|
Loading…
Reference in New Issue