[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
This commit is contained in:
Calum Lind 2023-12-02 18:45:21 +00:00
parent 810751d72a
commit 0c1a02dcb5
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 2 additions and 2 deletions

View File

@ -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.