From 4ffc0cff12f620f76ce36302aedb8b08e7403cd7 Mon Sep 17 00:00:00 2001 From: thalieht Date: Sat, 16 Nov 2019 22:13:35 +0200 Subject: [PATCH] Reallow to force recheck torrents that aren't fully started --- src/base/bittorrent/torrenthandle.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 00caaf88f..67e728a80 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1399,21 +1399,22 @@ void TorrentHandle::forceDHTAnnounce() void TorrentHandle::forceRecheck() { - if (m_startupState != Started) return; if (!hasMetadata()) return; m_nativeHandle.force_recheck(); m_unchecked = false; - if (isPaused()) { + if ((m_startupState != Started) || isPaused()) { #if (LIBTORRENT_VERSION_NUM < 10200) m_nativeHandle.stop_when_ready(true); #else m_nativeHandle.set_flags(lt::torrent_flags::stop_when_ready); #endif setAutoManaged(true); - m_pauseWhenReady = true; } + + if ((m_startupState == Started) && isPaused()) + m_pauseWhenReady = true; } void TorrentHandle::setSequentialDownload(const bool enable)