Module: deluge
Branch: master
Commit: 8f7e307f337d228500d8d08572cbebd8734ea79c

Author: Damien Churchill <[email protected]>
Date:   Thu Oct  7 00:14:21 2010 +0100

wrap client.disconnect() call with a check to see if its classic mode

---

 deluge/ui/web/json_api.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py
index 650faf6..19a9800 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"]:

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to