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

This commit is contained in:
Yann Leboulanger 2005-05-18 13:42:12 +00:00
parent 86b7862d2c
commit bb424fecf1

View file

@ -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