From 72970602af362e6e58b530cd33c56223e7796925 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 1 Jan 2021 16:16:52 +0300 Subject: [PATCH] Reload "missing files" torrent instead of re-checking --- src/base/bittorrent/torrenthandleimpl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/base/bittorrent/torrenthandleimpl.cpp b/src/base/bittorrent/torrenthandleimpl.cpp index 22bea48ec..447360ba8 100644 --- a/src/base/bittorrent/torrenthandleimpl.cpp +++ b/src/base/bittorrent/torrenthandleimpl.cpp @@ -1381,14 +1381,17 @@ void TorrentHandleImpl::resume(const TorrentOperatingMode mode) if (hasError()) m_nativeHandle.clear_error(); + m_operatingMode = mode; + if (m_hasMissingFiles) { m_hasMissingFiles = false; - m_nativeHandle.force_recheck(); + m_isStopped = false; + reload(); + updateStatus(); + return; } - m_operatingMode = mode; - if (m_isStopped) { // Torrent may have been temporarily resumed to perform checking files