diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index 36c5ab8b..2cbe3b0b 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -229,8 +229,10 @@ namespace torrents if (ids.is_array ()) for (const auto& it: ids.as_array ()) torrentIds.push_back (it.as_int64 ()); - else + else if (ids.is_int64 ()) torrentIds.push_back (ids.as_int64 ()); + else + torrentIds = m_Tunnel->GetTorrentIDs (); } else torrentIds = m_Tunnel->GetTorrentIDs ();