mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Pass generic connection errors to XMLStream.exception()
This commit is contained in:
parent
3019c82d8a
commit
24f27c0fe3
1 changed files with 2 additions and 1 deletions
|
@ -1112,9 +1112,10 @@ class XMLStream(object):
|
||||||
except Socket.error as serr:
|
except Socket.error as serr:
|
||||||
self.event('socket_error', serr)
|
self.event('socket_error', serr)
|
||||||
log.exception('Socket Error')
|
log.exception('Socket Error')
|
||||||
except:
|
except Exception as e:
|
||||||
if not self.stop.is_set():
|
if not self.stop.is_set():
|
||||||
log.exception('Connection error.')
|
log.exception('Connection error.')
|
||||||
|
self.exception(e)
|
||||||
|
|
||||||
if not self.stop.is_set() and self.auto_reconnect:
|
if not self.stop.is_set() and self.auto_reconnect:
|
||||||
self.reconnect()
|
self.reconnect()
|
||||||
|
|
Loading…
Reference in a new issue