temporary fix for the Event dispatcher to work with TLS connections

This commit is contained in:
Yann Leboulanger 2005-08-16 16:10:36 +00:00
parent bb0ba86b23
commit 54645ae409

View file

@ -1300,6 +1300,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
con.RegisterEventHandler(self._event_dispatcher)
if auth: if auth:
con.initRoster() con.initRoster()
self.last_incoming = time.time() self.last_incoming = time.time()