mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Don't break torrent checking
This commit is contained in:
parent
6007913291
commit
988f7e2ef8
1 changed files with 7 additions and 0 deletions
|
@ -1350,6 +1350,12 @@ void TorrentHandle::toggleFirstLastPiecePriority()
|
||||||
void TorrentHandle::pause()
|
void TorrentHandle::pause()
|
||||||
{
|
{
|
||||||
if (m_startupState != Started) return;
|
if (m_startupState != Started) return;
|
||||||
|
if (m_pauseWhenReady) return;
|
||||||
|
if (isChecking()) {
|
||||||
|
m_pauseWhenReady = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (isPaused()) return;
|
if (isPaused()) return;
|
||||||
|
|
||||||
m_nativeHandle.auto_managed(false);
|
m_nativeHandle.auto_managed(false);
|
||||||
|
@ -1366,6 +1372,7 @@ void TorrentHandle::resume(bool forced)
|
||||||
{
|
{
|
||||||
if (m_startupState != Started) return;
|
if (m_startupState != Started) return;
|
||||||
|
|
||||||
|
m_pauseWhenReady = false;
|
||||||
resume_impl(forced);
|
resume_impl(forced);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue