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

This commit is contained in:
Damien Churchill 2010-10-07 00:14:21 +01:00
parent f1f6f137c3
commit 8f7e307f33
1 changed files with 2 additions and 1 deletions

View File

@ -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"]: