From 0c1a02dcb5d1e6ed807c531da712a683f958b336 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 2 Dec 2023 18:45:21 +0000 Subject: [PATCH] [Core] Remove usage of deprecated torrent status.paused Noticed mismatch with current lt docs and found usage of deprecated status.paused. The actual check here is not required we should just attempt to pause the torrent. Issue: https://dev.deluge-torrent.org/ticket/3499 --- deluge/core/torrentmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index a758d5c62..c43a7a262 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.