gpg: don't clear options on RESET assuan command

This commit is contained in:
Roman Zeyde
2018-03-14 13:55:59 +02:00
parent 887561de9f
commit 5dba12f144
2 changed files with 3 additions and 2 deletions

View File

@@ -228,9 +228,10 @@ def run_agent(device_type):
pubkey_bytes = keyring.export_public_keys(env=env)
device_type.ui = device.ui.UI(device_type=device_type,
config=vars(args))
handler = agent.Handler(device=device_type(), pubkey_bytes=pubkey_bytes)
with server.unix_domain_socket_server(sock_path) as sock:
for conn in agent.yield_connections(sock):
handler = agent.Handler(device=device_type(),
pubkey_bytes=pubkey_bytes)
with contextlib.closing(conn):
try:
handler.handle(conn)