diff options
author | Wieland Hoffmann <themineo@gmail.com> | 2012-01-05 20:58:52 +0100 |
---|---|---|
committer | Wieland Hoffmann <themineo@gmail.com> | 2012-01-05 20:58:52 +0100 |
commit | 800eafec5a0ff63a461cc4f2348d6e695ba9ba12 (patch) | |
tree | f4c859580b0a2dae5dcfe5677a00b94ec4572452 | |
parent | Only claim to have unloaded a hook after it was unloaded (diff) | |
download | pyload-800eafec5a0ff63a461cc4f2348d6e695ba9ba12.tar.xz |
xmpp: disconnect on unload / deactivate
-rw-r--r-- | module/plugins/hooks/XMPPInterface.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index fad98beb7..de87433cf 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -267,4 +267,10 @@ class VersionHandler(object): q.newTextChild(q.ns(), "name", "Echo component") q.newTextChild(q.ns(), "version", "1.0") return iq - + + def unload(self): + self.log.debug("pyLoad XMPP: unloading") + self.disconnect() + + def deactivate(self): + self.unload() |