Merge pull request #13870 from sledgehammer999/fix_magnet_queue

Fix status of torrents without metadata
This commit is contained in:
sledgehammer999 2020-12-01 02:14:32 +02:00 committed by GitHub
commit af262e9a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -777,10 +777,10 @@ void TorrentHandleImpl::updateState()
{
if (isPaused())
m_state = TorrentState::PausedDownloading;
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata)
m_state = TorrentState::DownloadingMetadata;
else if (m_session->isQueueingSystemEnabled() && isQueued())
m_state = TorrentState::QueuedDownloading;
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata) // must come after queue check
m_state = TorrentState::DownloadingMetadata;
else if (isForced())
m_state = TorrentState::ForcedDownloading;
else if (m_nativeStatus.download_payload_rate > 0)