summaryrefslogtreecommitdiff
path: root/sleekxmpp/clientxmpp.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-10-02 09:25:30 -0700
committerLance Stout <lancestout@gmail.com>2012-10-02 09:25:30 -0700
commit098714b3c40af20b09cafee4bb09c0fa64c6cb00 (patch)
tree0cfad9f1b8165c009b1739541eff48e6b3c1a6f5 /sleekxmpp/clientxmpp.py
parent94488fa2ea4dac7ff6fce20621d2e80e700f6299 (diff)
downloadslixmpp-098714b3c40af20b09cafee4bb09c0fa64c6cb00.tar.gz
slixmpp-098714b3c40af20b09cafee4bb09c0fa64c6cb00.tar.bz2
slixmpp-098714b3c40af20b09cafee4bb09c0fa64c6cb00.tar.xz
slixmpp-098714b3c40af20b09cafee4bb09c0fa64c6cb00.zip
Unclobber connected event handler names.
Fixes issue #199
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r--sleekxmpp/clientxmpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index 9aa64256..7577b7da 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -95,7 +95,7 @@ class ClientXMPP(BaseXMPP):
self.bound = False
self.bindfail = False
- self.add_event_handler('connected', self._handle_connected)
+ self.add_event_handler('connected', self._reset_connection_state)
self.add_event_handler('session_bind', self._handle_session_bind)
self.register_stanza(StreamFeatures)
@@ -253,7 +253,7 @@ class ClientXMPP(BaseXMPP):
self._handle_roster(response)
return response
- def _handle_connected(self, event=None):
+ def _reset_connection_state(self, event=None):
#TODO: Use stream state here
self.authenticated = False
self.sessionstarted = False