fix blocker bug: tb on Resource binding

This commit is contained in:
Dimitur Kirov 2005-09-08 18:16:38 +00:00
parent f077c2a040
commit 50ac7f932b
1 changed files with 2 additions and 1 deletions

View File

@ -1374,7 +1374,8 @@ class Connection:
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name, self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
_('Check your connection or try again later'))) _('Check your connection or try again later')))
return None return None
self.server_resource = con.Resource if hasattr(con, 'Resource'):
self.server_resource = con.Resource
con.RegisterEventHandler(self._event_dispatcher) con.RegisterEventHandler(self._event_dispatcher)
if auth: if auth:
con.initRoster() con.initRoster()