From 259b5e51c49b74455183d734932a3c67dba51af8 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 2 Nov 2016 18:25:09 +0200 Subject: [PATCH] Don't ever stop seeding forced torrents. Closes #5784. --- src/base/bittorrent/session.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 4e7592584..d5fec582a 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -1289,7 +1289,8 @@ void Session::processBigRatios() qreal globalMaxRatio = this->globalMaxRatio(); foreach (TorrentHandle *const torrent, m_torrents) { - if (torrent->isSeed() && (torrent->ratioLimit() != TorrentHandle::NO_RATIO_LIMIT)) { + if (torrent->isSeed() + && ((torrent->ratioLimit() != TorrentHandle::NO_RATIO_LIMIT) || !torrent->isForced())) { const qreal ratio = torrent->realRatio(); qreal ratioLimit = torrent->ratioLimit(); if (ratioLimit == TorrentHandle::USE_GLOBAL_RATIO) {