3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

client: Reset prompt on agent exit

When the client is interrupted in the middle of user input entry and the
input is masked, the terminal might be left in a weird state.  Make sure
to reset the prompt if the agent is being cleaned up in the middle of an
operation.
This commit is contained in:
Denis Kenzior 2020-08-19 09:27:44 -05:00
parent 9b459c1943
commit 9047157b5e

View File

@ -481,8 +481,10 @@ bool agent_exit(const char *path)
{
struct l_dbus *dbus = dbus_get_bus();
if (pending_message)
if (pending_message) {
l_dbus_message_unref(pending_message);
display_agent_prompt_release(pending_op.last_label);
}
l_queue_destroy(pending_op.saved_input, l_free);