show in GUI that we are offline when we don't get XMPP ping in time
This commit is contained in:
parent
419652d61f
commit
436c75a244
|
@ -1618,7 +1618,7 @@ class Connection(ConnectionHandlers):
|
||||||
def check_keepalive(self):
|
def check_keepalive(self):
|
||||||
if self.awaiting_xmpp_ping_id:
|
if self.awaiting_xmpp_ping_id:
|
||||||
# We haven't got the pong in time, disco and reconnect
|
# We haven't got the pong in time, disco and reconnect
|
||||||
self.disconnect()
|
self._disconnectedReconnCB()
|
||||||
|
|
||||||
def _reconnect_alarm(self):
|
def _reconnect_alarm(self):
|
||||||
if self.time_to_reconnect:
|
if self.time_to_reconnect:
|
||||||
|
|
Loading…
Reference in New Issue