mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
wrap client.disconnect() call with a check to see if its classic mode
This commit is contained in:
parent
21c8d02d9a
commit
8428524793
@ -150,7 +150,8 @@ class JSON(resource.Resource, component.Component):
|
|||||||
return d
|
return d
|
||||||
|
|
||||||
def disable(self):
|
def disable(self):
|
||||||
client.disconnect()
|
if not client.is_classicmode():
|
||||||
|
client.disconnect()
|
||||||
|
|
||||||
def enable(self):
|
def enable(self):
|
||||||
if component.get("DelugeWeb").config["default_daemon"]:
|
if component.get("DelugeWeb").config["default_daemon"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user