Skip to content
Snippets Groups Projects
Commit bb424fec authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

put xmpp.Process() in a try/except (see ticket #291)

parent 86b7862d
No related branches found
No related tags found
No related merge requests found
......@@ -946,5 +946,15 @@ class Connection:
if not self.connection:
return
if self.connected:
self.connection.Process(timeout)
try:
self.connection.Process(timeout)
except e, msg:
gajim.log.debug('error appeared while processing xmpp: %s' % msg)
self.connected = 0
self.dispatch('STATUS', 'offline')
try:
self.connection.disconnect()
except:
gajim.log.debug('error appeared while processing xmpp: %s' % msg)
self.connection = None
# END GajimCore
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment