From 597096ce812437cd3db30a4d5b574393d70a3c4b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 8 Feb 2008 22:04:42 +0000 Subject: [PATCH] don't show us online automatically when we are in error state and we try to go online --- src/common/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index fc86951e2..2c1177bbc 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -936,7 +936,7 @@ class Connection(ConnectionHandlers): if not auto and not show == 'offline': sign_msg = True self.status = msg - if show != 'offline' and not self.connected: + if show != 'offline' and self.connected < 1: # set old_show to requested 'show' in case we need to # recconect before we auth to server self.old_show = show @@ -969,7 +969,7 @@ class Connection(ConnectionHandlers): self.time_to_reconnect = None self._on_disconnected() - elif show != 'offline' and self.connected: + elif show != 'offline' and self.connected > 0: # dont'try to connect, when we are in state 'connecting' if self.connected == 1: return