wrap client.disconnect() call with a check to see if its classic mode
This commit is contained in:
parent
f1f6f137c3
commit
8f7e307f33
|
@ -150,6 +150,7 @@ class JSON(resource.Resource, component.Component):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def disable(self):
|
def disable(self):
|
||||||
|
if not client.is_classicmode():
|
||||||
client.disconnect()
|
client.disconnect()
|
||||||
|
|
||||||
def enable(self):
|
def enable(self):
|
||||||
|
|
Loading…
Reference in New Issue