mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
wrap client.disconnect() call with a check to see if its classic mode
This commit is contained in:
parent
f1f6f137c3
commit
8f7e307f33
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ class JSON(resource.Resource, component.Component):
|
|||
return d
|
||||
|
||||
def disable(self):
|
||||
client.disconnect()
|
||||
if not client.is_classicmode():
|
||||
client.disconnect()
|
||||
|
||||
def enable(self):
|
||||
if component.get("DelugeWeb").config["default_daemon"]:
|
||||
|
|
Loading…
Add table
Reference in a new issue