forked from premiere/premiere-libtorrent
fix another issue with adding magnet links with a valid torrent_info object
This commit is contained in:
parent
28243bff31
commit
9fe69e7596
|
@ -3888,7 +3888,7 @@ namespace aux {
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(!params.save_path.empty());
|
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;
|
ec = errors::no_files_in_torrent;
|
||||||
return torrent_handle();
|
return torrent_handle();
|
||||||
|
|
Loading…
Reference in New Issue