Browse Source

Fix status of torrents without metadata

adaptive-webui-19844
sledgehammer999 4 years ago
parent
commit
be5cb1683b
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 4
      src/base/bittorrent/torrenthandleimpl.cpp

4
src/base/bittorrent/torrenthandleimpl.cpp

@ -777,10 +777,10 @@ void TorrentHandleImpl::updateState() @@ -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)

Loading…
Cancel
Save