From 9b6122c328be1f6152ac7c18caf891329e95e654 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 28 Oct 2015 01:41:04 +0200 Subject: [PATCH] Fix corner case of reseting 'm_hasSeedStatus' in 3a29d70dd553. --- src/core/bittorrent/torrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bittorrent/torrenthandle.cpp b/src/core/bittorrent/torrenthandle.cpp index 3d06ca982..3cc2d8ee4 100644 --- a/src/core/bittorrent/torrenthandle.cpp +++ b/src/core/bittorrent/torrenthandle.cpp @@ -1378,7 +1378,7 @@ void TorrentHandle::handleTorrentCheckedAlert(libtorrent::torrent_checked_alert updateStatus(); adjustActualSavePath(); - if (progress() < 1.0) + if (progress() < 1.0 && wantedSize() > 0) m_hasSeedStatus = false; if (m_pauseAfterRecheck) {