don't run several GPG threads when we receive a non-GPG message. Fixes #7311

This commit is contained in:
Yann Leboulanger 2013-04-05 20:59:17 +02:00
parent 07f86ba2a6
commit 580e548729
1 changed files with 2 additions and 1 deletions

View File

@ -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):