put xmpp.Process() in a try/except (see ticket #291)
This commit is contained in:
parent
86b7862d2c
commit
bb424fecf1
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue