diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 02132a113..84e92563d 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -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"]: