Mercurial > libervia-backend
comparison sat/core/xmpp.py @ 3709:09f5ac48ffe3
merge bookmark @
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 12 Nov 2021 17:21:24 +0100 |
parents | 31628770a15a a806dcad6bfc |
children | b9718216a1c0 |
comparison
equal
deleted
inserted
replaced
3684:8353cc3b8db9 | 3709:09f5ac48ffe3 |
---|---|
301 super(SatXMPPEntity, self)._authd(xmlstream) | 301 super(SatXMPPEntity, self)._authd(xmlstream) |
302 log.debug(_("{profile} identified").format(profile=self.profile)) | 302 log.debug(_("{profile} identified").format(profile=self.profile)) |
303 self.streamInitialized() | 303 self.streamInitialized() |
304 | 304 |
305 def _finish_connection(self, __): | 305 def _finish_connection(self, __): |
306 self.conn_deferred.callback(None) | 306 if self.conn_deferred.called: |
307 # can happen in case of forced disconnection by server | |
308 log.debug(f"{self} has already been connected") | |
309 else: | |
310 self.conn_deferred.callback(None) | |
307 | 311 |
308 def streamInitialized(self): | 312 def streamInitialized(self): |
309 """Called after _authd""" | 313 """Called after _authd""" |
310 log.debug(_("XML stream is initialized")) | 314 log.debug(_("XML stream is initialized")) |
311 if not self.host_app.trigger.point("xml_init", self): | 315 if not self.host_app.trigger.point("xml_init", self): |