diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2012-12-13 01:03:13 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2012-12-13 01:03:13 +0400 |
commit | 1425f756a3bda08d2fc7cc8b685a8e1bfd102b44 (patch) | |
tree | cc857ac69b65b130d1e513fb5edf3a94cad82cb7 | |
parent | 45e26c1afb18a1c799e706b94eab3067aa3294d7 (diff) |
don't reconnect a disabled account. Fixes #7265
-rw-r--r-- | src/common/connection.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index 4ed944e63..23fb989fe 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -2641,6 +2641,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.") |