diff --git a/trezor_agent/gpg/agent.py b/trezor_agent/gpg/agent.py index 2f19f37..0085b4d 100644 --- a/trezor_agent/gpg/agent.py +++ b/trezor_agent/gpg/agent.py @@ -132,6 +132,8 @@ def handle_connection(conn): elif command == 'PKDECRYPT': sec = pkdecrypt(keygrip, conn) keyring.sendline(conn, b'D ' + sec) + elif command == 'BYE': + return else: log.error('unknown request: %r', line) return