respond with all torrents info if can't recognize ids param

This commit is contained in:
orignal
2026-09-07 08:32:33 -04:00
parent bf0735a5f0
commit fb5500ba94
+3 -1
View File
@@ -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 ();