|
|
@ -1224,7 +1224,7 @@ void TorrentHandle::forceRecheck() |
|
|
|
|
|
|
|
|
|
|
|
if (isPaused()) { |
|
|
|
if (isPaused()) { |
|
|
|
m_nativeHandle.stop_when_ready(true); |
|
|
|
m_nativeHandle.stop_when_ready(true); |
|
|
|
resume_impl(true, true); |
|
|
|
resume_impl(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1303,10 +1303,10 @@ void TorrentHandle::pause() |
|
|
|
|
|
|
|
|
|
|
|
void TorrentHandle::resume(bool forced) |
|
|
|
void TorrentHandle::resume(bool forced) |
|
|
|
{ |
|
|
|
{ |
|
|
|
resume_impl(forced, false); |
|
|
|
resume_impl(forced); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TorrentHandle::resume_impl(bool forced, bool uploadMode) |
|
|
|
void TorrentHandle::resume_impl(bool forced) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (hasError()) |
|
|
|
if (hasError()) |
|
|
|
m_nativeHandle.clear_error(); |
|
|
|
m_nativeHandle.clear_error(); |
|
|
@ -1317,7 +1317,6 @@ void TorrentHandle::resume_impl(bool forced, bool uploadMode) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
m_nativeHandle.auto_managed(!forced); |
|
|
|
m_nativeHandle.auto_managed(!forced); |
|
|
|
m_nativeHandle.set_upload_mode(uploadMode); |
|
|
|
|
|
|
|
m_nativeHandle.resume(); |
|
|
|
m_nativeHandle.resume(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|