Cache torrent handles of preloading magnets

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-11-03 13:29:48 +03:00
parent da586828be
commit 0b70ccf9e9
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
2 changed files with 12 additions and 11 deletions

View file

@ -694,7 +694,7 @@ namespace BitTorrent
ResumeDataStorage *m_resumeDataStorage = nullptr;
FileSearcher *m_fileSearcher = nullptr;
QSet<TorrentID> m_downloadedMetadata;
QHash<TorrentID, lt::torrent_handle> m_downloadedMetadata;
QHash<TorrentID, TorrentImpl *> m_torrents;
QHash<TorrentID, TorrentImpl *> m_hybridTorrentsByAltID;