# HG changeset patch # User Goffi # Date 1551078420 -3600 # Node ID ba2e03ee7c4f063ce466e28060d30fd62df505bd # Parent a26b1ad2d3a4cdf659538eac0e7b0af5a4d9adeb plugin OTR: do profile session init in profileConnecting, so it is done before receiving any stanza diff -r a26b1ad2d3a4 -r ba2e03ee7c4f sat/plugins/plugin_sec_otr.py --- a/sat/plugins/plugin_sec_otr.py Sun Feb 24 14:12:06 2019 +0100 +++ b/sat/plugins/plugin_sec_otr.py Mon Feb 25 08:07:00 2019 +0100 @@ -368,7 +368,7 @@ self.skipped_profiles.add(profile) @defer.inlineCallbacks - def profileConnected(self, client): + def profileConnecting(self, client): if client.profile in self.skipped_profiles: return ctxMng = client._otr_context_manager = ContextManager(self, client)