Commit b4bc3e53 authored by Philipp Hörist's avatar Philipp Hörist

[pgp] Dont save instance of GnuPG()

parent bd2a2c69
...@@ -72,16 +72,14 @@ class OldPGPPlugin(GajimPlugin): ...@@ -72,16 +72,14 @@ class OldPGPPlugin(GajimPlugin):
'encryption_state' + self.encryption_name: ( 'encryption_state' + self.encryption_name: (
self.encryption_state, None)} self.encryption_state, None)}
self.gpg_instances = {}
self.decrypt_queue = queue.Queue() self.decrypt_queue = queue.Queue()
self.thread = None self.thread = None
def get_gpg(self, account): def get_gpg(self, account):
return self.gpg_instances[account] return gajim.connections[account].gpg
def activate(self): def activate(self):
for account in gajim.connections: pass
self.gpg_instances[account] = gajim.connections[account].gpg
def deactivate(self): def deactivate(self):
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment