fix another issue with adding magnet links with a valid torrent_info object

This commit is contained in:
Arvid Norberg 2011-02-21 03:07:37 +00:00
parent 28243bff31
commit 9fe69e7596
1 changed files with 1 additions and 1 deletions

View File

@ -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();