fix blocker bug: tb on Resource binding
This commit is contained in:
parent
f077c2a040
commit
50ac7f932b
|
@ -1374,6 +1374,7 @@ 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
|
||||||
|
if hasattr(con, 'Resource'):
|
||||||
self.server_resource = con.Resource
|
self.server_resource = con.Resource
|
||||||
con.RegisterEventHandler(self._event_dispatcher)
|
con.RegisterEventHandler(self._event_dispatcher)
|
||||||
if auth:
|
if auth:
|
||||||
|
|
Loading…
Reference in New Issue