mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 21:40:22 +01:00
agent-manager: don't try to cancel requests that already finished
Fixes:5d1cac81a0(cherry picked from commitf558502278)
This commit is contained in:
parent
302914c010
commit
8c8e88ae28
1 changed files with 4 additions and 2 deletions
|
|
@ -816,8 +816,10 @@ 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);
|
||||
if (parent->current_call_id) {
|
||||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue