From 8f7e307f337d228500d8d08572cbebd8734ea79c Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 7 Oct 2010 00:14:21 +0100 Subject: [PATCH] wrap client.disconnect() call with a check to see if its classic mode --- deluge/ui/web/json_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 650faf64c..19a980027 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"]: