Improve adding torrent using Magnet URI

Closes #13249.
This commit is contained in:
Vladimir Golovnev (Glassez)
2020-08-14 16:32:09 +03:00
parent 4539c679d9
commit 20206ec92a
4 changed files with 31 additions and 67 deletions

View File

@@ -746,12 +746,7 @@ namespace BitTorrent
QThread *m_ioThread = nullptr;
ResumeDataSavingManager *m_resumeDataSavingManager = nullptr;
struct LoadedMetadataHandle
{
lt::add_torrent_params ltAddTorrentParams {};
TorrentInfo metadata;
};
QHash<InfoHash, LoadedMetadataHandle> m_loadedMetadata;
QSet<InfoHash> m_loadedMetadata;
QHash<InfoHash, TorrentHandleImpl *> m_torrents;
QHash<InfoHash, LoadTorrentParams> m_loadingTorrents;