mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
committed by
GitHub
parent
d173216941
commit
7527343629
@@ -2004,6 +2004,13 @@ void TorrentImpl::handleMetadataReceivedAlert(const lt::metadata_received_alert
|
||||
Q_UNUSED(p);
|
||||
qDebug("Metadata received for torrent %s.", qUtf8Printable(name()));
|
||||
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
const TorrentID prevTorrentID = id();
|
||||
m_infoHash = InfoHash(m_nativeHandle.info_hashes());
|
||||
if (prevTorrentID != id())
|
||||
m_session->handleTorrentIDChanged(this, prevTorrentID);
|
||||
#endif
|
||||
|
||||
m_maintenanceJob = MaintenanceJob::HandleMetadata;
|
||||
m_session->handleTorrentNeedSaveResumeData(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user