forked from premiere/premiere-libtorrent
forward port fix for deleting files of magnet link to master
This commit is contained in:
parent
31caa946f2
commit
1f3f06a836
|
@ -76,6 +76,8 @@
|
|||
* almost completely changed the storage interface (for custom storage)
|
||||
* added support for hashing pieces in multiple threads
|
||||
|
||||
* fixed bug when deleting files for magnet links before they had metadata
|
||||
|
||||
1.0.7 release
|
||||
|
||||
* fix bug where loading settings via load_state() would not trigger all
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a6129b41688ae3caa667f0ac766080fbee28eb37
|
||||
Subproject commit 8417cbee7f1a813f032c5c1ed81e1f2881af7580
|
|
@ -8770,6 +8770,16 @@ namespace libtorrent
|
|||
return;
|
||||
}
|
||||
|
||||
// if we don't have metadata yet, we don't know anything about the file
|
||||
// structure and we have to assume we don't have any file. Deleting files
|
||||
// in this mode would cause us to (recursively) delete m_save_path, which
|
||||
// is bad.
|
||||
if (!valid_metadata())
|
||||
{
|
||||
alerts().emplace_alert<torrent_deleted_alert>(get_handle(), m_torrent_file->info_hash());
|
||||
return;
|
||||
}
|
||||
|
||||
// storage may be NULL during shutdown
|
||||
if (m_storage.get())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue