diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2023-12-02 19:45:21 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2023-12-02 22:20:11 +0100 |
commit | 0c1a02dcb5d1e6ed807c531da712a683f958b336 (patch) | |
tree | 17006b2a8b06d4978f189a685bdaffb05421d153 | |
parent | [Tests] Refactor parse_human_size test (diff) | |
download | deluge-0c1a02dcb5d1e6ed807c531da712a683f958b336.tar.xz deluge-0c1a02dcb5d1e6ed807c531da712a683f958b336.zip |
[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
-rw-r--r-- | deluge/core/torrentmanager.py | 4 |
1 files 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. |