fix another issue with adding magnet links with a valid torrent_info object
This commit is contained in:
@@ -3888,7 +3888,7 @@ namespace aux {
|
||||
{
|
||||
TORRENT_ASSERT(!params.save_path.empty());
|
||||
|
||||
if (params.ti && params.ti->num_files() == 0)
|
||||
if (params.ti && params.ti->is_valid() && params.ti->num_files() == 0)
|
||||
{
|
||||
ec = errors::no_files_in_torrent;
|
||||
return torrent_handle();
|
||||
|
Reference in New Issue
Block a user