diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 069ad11ab..93aa75d60 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1275,7 +1275,7 @@ void TorrentHandle::forceRecheck() if (isPaused()) { m_nativeHandle.stop_when_ready(true); - resume_impl(true, true); + resume_impl(false); } } @@ -1354,10 +1354,10 @@ void TorrentHandle::pause() 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()) m_nativeHandle.clear_error(); @@ -1368,7 +1368,6 @@ void TorrentHandle::resume_impl(bool forced, bool uploadMode) } m_nativeHandle.auto_managed(!forced); - m_nativeHandle.set_upload_mode(uploadMode); m_nativeHandle.resume(); } diff --git a/src/base/bittorrent/torrenthandle.h b/src/base/bittorrent/torrenthandle.h index df66766e3..425e688d4 100644 --- a/src/base/bittorrent/torrenthandle.h +++ b/src/base/bittorrent/torrenthandle.h @@ -408,7 +408,7 @@ namespace BitTorrent void handleMetadataReceivedAlert(const libtorrent::metadata_received_alert *p); void handleStatsAlert(const libtorrent::stats_alert *p); - void resume_impl(bool forced, bool uploadMode); + void resume_impl(bool forced); bool isMoveInProgress() const; QString nativeActualSavePath() const;