Browse Source

Save state change from queued to paused

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

6
src/base/bittorrent/torrenthandle.cpp

@ -1347,6 +1347,12 @@ void TorrentHandle::pause()
m_nativeHandle.auto_managed(false); m_nativeHandle.auto_managed(false);
m_nativeHandle.pause(); m_nativeHandle.pause();
// Libtorrent doesn't emit a torrent_paused_alert when the
// torrent is queued (no I/O)
// We test on the cached m_nativeStatus
if (isQueued())
m_session->handleTorrentPaused(this);
} }
void TorrentHandle::resume(bool forced) void TorrentHandle::resume(bool forced)

Loading…
Cancel
Save