From a56c9dd8450c79a9b777797cf95279575bdff054 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 25 Feb 2019 08:07:00 +0100 Subject: [PATCH] plugin OTR: do profile session init in profileConnecting, so it is done before receiving any stanza --- sat/plugins/plugin_sec_otr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/plugins/plugin_sec_otr.py b/sat/plugins/plugin_sec_otr.py index 7df4d509..138e2f98 100644 --- a/sat/plugins/plugin_sec_otr.py +++ b/sat/plugins/plugin_sec_otr.py @@ -368,7 +368,7 @@ class OTR(object): 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)