mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
agent-manager: don't try to cancel requests that already finished
Fixes: 5d1cac81a0
This commit is contained in:
parent
c8e2339091
commit
f558502278
1 changed files with 4 additions and 2 deletions
|
|
@ -841,8 +841,10 @@ _con_get_request_done (NMSecretAgent *agent,
|
|||
req_complete_error (req, error);
|
||||
g_error_free (error);
|
||||
} else {
|
||||
/* Tell the failed agent we're no longer interested. */
|
||||
nm_secret_agent_cancel_secrets (req->current, req->current_call_id);
|
||||
if (req->current_call_id) {
|
||||
/* Tell the failed agent we're no longer interested. */
|
||||
nm_secret_agent_cancel_secrets (req->current, req->current_call_id);
|
||||
}
|
||||
|
||||
/* Try the next agent */
|
||||
request_next_agent (req);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue