diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-08-21 00:26:57 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-08-21 00:26:57 +0000 |
commit | 00d46ee2b0fe4c0d76525d284dcc7ed588e701af (patch) | |
tree | 030bb13d45debd1d9d7970f95fba96835573dcb4 | |
parent | 9cbc29149f4a5437bc9f54f124895278b558b25d (diff) | |
download | slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.gz slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.bz2 slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.xz slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.zip |
* fixed xmlstream bugs with unexpected disconnect
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index c2a581aa..a3f3d2ee 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -258,10 +258,11 @@ class XMLStream(object): data = data.encode('utf-8') try: self.socket.send(data) - except socket.error,(errno, strerror): + #except socket.error,(errno, strerror): + except: self.state.set('connected', False) if self.state.reconnect: - logging.error("Disconnected. Socket Error #%s: %s" % (errno,strerror)) + logging.error("Disconnected. Socket Error.") self.disconnect(reconnect=True) return False return True |