diff options
| author | 2010-12-26 14:20:25 +0100 | |
|---|---|---|
| committer | 2010-12-26 14:20:25 +0100 | |
| commit | f4465d8f5cadca4f21360a097af1107e7330be82 (patch) | |
| tree | 808e92599289154be70e865b472aba69d820ba80 | |
| parent | more xmpp debug (diff) | |
| download | pyload-f4465d8f5cadca4f21360a097af1107e7330be82.tar.xz | |
xmpp reconnect fix
| -rw-r--r-- | module/plugins/hooks/XMPPInterface.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index dd0cd2f28..6c6141a73 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -190,7 +190,12 @@ class XMPPInterface(IRCInterface, JabberClient):                  stream = self.get_stream()              stream.send(m) -         + +    def beforeReconnecting(self, ip): +        self.disconnect() + +    def afterReconnecting(self, ip): +        self.connect()  class VersionHandler(object):      """Provides handler for a version query. | 
