diff --git a/src/common/connection.py b/src/common/connection.py index 0260ef3cc..0ba6f8d79 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1241,7 +1241,8 @@ class Connection: msg = '%s seconds have passed and server did not reply to our keepalive. Gajim disconnected from %s' % (str(keep_alive_disconnect_secs), self.name) gajim.log.debug(msg) return - self.connection.Process(timeout) + if self.connection: + self.connection.Process(timeout) except: gajim.log.debug('error appeared while processing xmpp:') traceback.print_exc()