From 580e5487294ca390940c639f0f2df28125340c4f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 5 Apr 2013 20:59:17 +0200 Subject: [PATCH] don't run several GPG threads when we receive a non-GPG message. Fixes #7311 --- src/common/connection_handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 80c82731f..7b7cab507 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1015,7 +1015,8 @@ class ConnectionHandlersBase: gajim.thread_interface(self.decrypt_thread, [encmsg, keyID, obj], self._on_message_decrypted, [obj]) return - self._on_message_decrypted(None, obj) + gajim.nec.push_incoming_event(DecryptedMessageReceivedEvent(None, + conn=self, msg_obj=obj)) def _on_message_decrypted(self, output, obj): if len(self.gpg_messages_to_decrypt):