summaryrefslogtreecommitdiffstats
path: root/deluge/core/torrentmanager.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 06:05:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 06:05:04 +0000
commita25d7ce98b4c82420e5905a0aea7a1efe9920432 (patch)
tree674c6f83771a2c03c2a0e47a4d6337f2cad8bb9c /deluge/core/torrentmanager.py
parentReleasing debian version 2.1.2~dev0+20231127-1. (diff)
downloaddeluge-a25d7ce98b4c82420e5905a0aea7a1efe9920432.tar.xz
deluge-a25d7ce98b4c82420e5905a0aea7a1efe9920432.zip
Merging upstream version 2.1.2~dev0+20240121.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/core/torrentmanager.py')
-rw-r--r--deluge/core/torrentmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py
index a758d5c..c43a7a2 100644
--- a/deluge/core/torrentmanager.py
+++ b/deluge/core/torrentmanager.py
@@ -290,8 +290,8 @@ class TorrentManager(component.Component):
if torrent.options['remove_at_ratio']:
self.remove(torrent_id)
break
- if not torrent.status.paused:
- torrent.pause()
+
+ torrent.pause()
def __getitem__(self, torrent_id):
"""Return the Torrent with torrent_id.