Merge pull request #13340 from glassez/fix-magnet

Improve adding torrent using Magnet URI
This commit is contained in:
Vladimir Golovnev
2020-09-09 10:06:39 +03:00
committed by GitHub
4 changed files with 48 additions and 81 deletions

View File

@@ -758,12 +758,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;