don't reconnect a disabled account. Fixes #7265
This commit is contained in:
parent
12cf1eba1f
commit
d1adec53be
|
@ -2668,6 +2668,9 @@ class Connection(CommonConnection, ConnectionHandlers):
|
|||
self.connection.send(message)
|
||||
|
||||
def check_pingalive(self):
|
||||
if not gajim.config.get_per('accounts', self.name, 'active'):
|
||||
# Account may have been disabled
|
||||
return
|
||||
if self.awaiting_xmpp_ping_id:
|
||||
# We haven't got the pong in time, disco and reconnect
|
||||
log.warn("No reply received for keepalive ping. Reconnecting.")
|
||||
|
|
Loading…
Reference in New Issue