summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-08-21 00:26:57 +0000
committerNathan Fritz <fritzy@netflint.net>2009-08-21 00:26:57 +0000
commit00d46ee2b0fe4c0d76525d284dcc7ed588e701af (patch)
tree030bb13d45debd1d9d7970f95fba96835573dcb4 /sleekxmpp
parent9cbc29149f4a5437bc9f54f124895278b558b25d (diff)
downloadslixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.gz
slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.bz2
slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.tar.xz
slixmpp-00d46ee2b0fe4c0d76525d284dcc7ed588e701af.zip
* fixed xmlstream bugs with unexpected disconnect
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py5
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