summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-10-20 19:41:19 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-10-23 18:22:03 +0200
commit0a95f003a9b0cad71d8fcb88562f4050881e0ace (patch)
treec2a4075c735be3189daec936390f77e98f6d8a82
parent48111a08280a46604ee5229622108c2966a252a1 (diff)
downloadNetworkManager-0a95f003a9b0cad71d8fcb88562f4050881e0ace.tar.gz
agent-manager: cancel secrets requests on an error
It might be that the user didn't supply the secrets in time and the dbus call timed out. The agent should now hide the secrets dialog and we must let it know. https://bugzilla.redhat.com/show_bug.cgi?id=1272023 (cherry picked from commit 5d1cac81a0bcc66b891bc38f1a2cc4b84d47f08b)
-rw-r--r--src/settings/nm-agent-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index 8dcda06db7..d59173ae76 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -816,6 +816,9 @@ get_done_cb (NMSecretAgent *agent,
req_complete_error (parent, error);
g_error_free (error);
} else {
+ /* Tell the failed agent we're no longer interested. */
+ nm_secret_agent_cancel_secrets (parent->current, parent->current_call_id);
+
/* Try the next agent */
request_next_agent (parent);
}