diff --git a/src/common/connection.py b/src/common/connection.py index df8d90cee..47e385660 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -666,7 +666,9 @@ class Connection: self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name, _('Check your connection or try again later'))) return None, None - + + gajim.log.debug('Connected to server with %s', con_type) + self.dispatch('CON_TYPE', con_type) # notify the gui about con_type con.RegisterHandler('message', self._messageCB) @@ -699,8 +701,6 @@ class Connection: con.RegisterHandler('message', self._StanzaArrivedCB) con.RegisterEventHandler(self._event_dispatcher) - gajim.log.debug('Connected to server') - try: #FIXME: blocking auth = con.auth(name, self.password, resource, 1)