Browse Source

Reload "missing files" torrent instead of re-checking

adaptive-webui-19844
Vladimir Golovnev (Glassez) 4 years ago
parent
commit
b2199202ab
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 9
      src/base/bittorrent/torrenthandleimpl.cpp

9
src/base/bittorrent/torrenthandleimpl.cpp

@ -1381,14 +1381,17 @@ void TorrentHandleImpl::resume(const TorrentOperatingMode mode) @@ -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

Loading…
Cancel
Save