gpg: handle BYE command

This commit is contained in:
Roman Zeyde
2016-06-03 17:43:46 +03:00
parent 2acd0bf3b7
commit a6660fd5c5

View File

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