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 21c8d02d9a
commit 8428524793
1 changed files with 2 additions and 1 deletions

View File

@ -150,6 +150,7 @@ class JSON(resource.Resource, component.Component):
return d
def disable(self):
if not client.is_classicmode():
client.disconnect()
def enable(self):