summaryrefslogtreecommitdiffstats
path: root/deluge/core/torrentmanager.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 06:04:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-31 06:04:57 +0000
commit93d4ec3eedcef6e840ca2bcc271d3373b0b5efb9 (patch)
treed2f1f9efc10873a3dd02b1b476bc5759e8e1b7d6 /deluge/core/torrentmanager.py
parentAdding upstream version 2.1.2~dev0+20231127. (diff)
downloaddeluge-93d4ec3eedcef6e840ca2bcc271d3373b0b5efb9.tar.xz
deluge-93d4ec3eedcef6e840ca2bcc271d3373b0b5efb9.zip
Adding upstream version 2.1.2~dev0+20240121.upstream/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.