Changeset 8650 for branches/gajim_0.11.1/src/common
- Timestamp:
- 08/31/07 09:56:38 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/common/zeroconf/connection_zeroconf.py
r8636 r8650 65 65 self.call_resolve_timeout = False 66 66 67 #self.time_to_reconnect = None67 self.time_to_reconnect = None 68 68 #self.new_account_info = None 69 69 self.bookmarks = [] … … 128 128 129 129 def _reconnect(self): 130 # Do not try to reco while we are already trying 131 self.time_to_reconnect = None 130 132 gajim.log.debug('reconnect') 131 133 … … 199 201 self.status = 'offline' 200 202 self.disconnect() 203 204 def _disconnectedReconnCB(self): 205 '''Called when we are disconnected. Comes from network manager for example 206 we don't try to reconnect, network manager will tell us when we can''' 207 log.debug('disconnectedReconnCB') 208 if gajim.account_is_connected(self.name): 209 # we cannot change our status to offline or connecting 210 # after we auth to server 211 self.old_show = STATUS_LIST[self.connected] 212 self.connected = 0 213 self.dispatch('STATUS', 'offline') 214 # random number to show we wait network manager to send us a reconenct 215 self.time_to_reconnect = 5 216 self.on_purpose = False 201 217 202 218 def _on_name_conflictCB(self, alt_name): … … 301 317 elif show == 'offline' and self.connected: 302 318 self.disconnect() 319 self.time_to_reconnect = None 303 320 304 321 # update status
