Changeset 9836 for trunk/src/common/connection.py
- Timestamp:
- 06/25/08 08:56:03 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/common/connection.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/connection.py
r9824 r9836 252 252 253 253 def _connection_lost(self): 254 log.debug('_connection_lost') 254 255 self.disconnect(on_purpose = False) 255 256 self.dispatch('STATUS', 'offline') … … 517 518 518 519 def connect_to_next_type(self, retry=False): 520 log.debug('Connection to next type') 519 521 if len(self._connection_types): 520 522 self._current_type = self._connection_types.pop(0) … … 558 560 559 561 def connect_to_next_host(self, retry = False): 562 log.debug('Connection to next host') 560 563 if len(self._hosts): 561 564 # No config option exist when creating a new account … … 1280 1283 def _on_new_account(self, con = None, con_type = None): 1281 1284 if not con_type: 1285 if len(self._connection_types) or len(self._hosts): 1286 # There are still other way to try to connect 1287 return 1282 1288 self.dispatch('NEW_ACC_NOT_CONNECTED', 1283 1289 (_('Could not connect to "%s"') % self._hostname))
