Author: asterix Date: 2008-02-08 23:04:42 +0100 (Fri, 08 Feb 2008) New Revision: 9318
Modified: trunk/src/common/connection.py Log: don't show us online automatically when we are in error state and we try to go online
Modified: trunk/src/common/connection.py =================================================================== --- trunk/src/common/connection.py 2008-02-08 21:58:13 UTC (rev 9317) +++ trunk/src/common/connection.py 2008-02-08 22:04:42 UTC (rev 9318) @@ -936,7 +936,7 @@ 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 @@ 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