From b4bc3e53646599c3dd6b7ac2e35730de86415dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 30 Jun 2017 19:11:08 +0200 Subject: [PATCH] [pgp] Dont save instance of GnuPG() --- pgp/pgpplugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pgp/pgpplugin.py b/pgp/pgpplugin.py index 27ee338..67a28a2 100644 --- a/pgp/pgpplugin.py +++ b/pgp/pgpplugin.py @@ -72,16 +72,14 @@ class OldPGPPlugin(GajimPlugin): 'encryption_state' + self.encryption_name: ( self.encryption_state, None)} - self.gpg_instances = {} self.decrypt_queue = queue.Queue() self.thread = None def get_gpg(self, account): - return self.gpg_instances[account] + return gajim.connections[account].gpg def activate(self): - for account in gajim.connections: - self.gpg_instances[account] = gajim.connections[account].gpg + pass def deactivate(self): pass -- GitLab