Skip to content

Commit

Permalink
[Core] Remove usage of deprecated torrent status.paused
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cas-- committed Dec 2, 2023
1 parent 810751d commit 0c1a02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deluge/core/torrentmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ def update(self):
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.
Expand Down

0 comments on commit 0c1a02d

Please sign in to comment.