mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 05:40:29 +01:00
agent: fix current agent removal if agent goes away
The current agent isn't in the 'pending' list, so don't check the list for the agent and bail if it's not found since that won't handle the current agent going away.
This commit is contained in:
parent
7ddf9c5e72
commit
8ff556be3c
1 changed files with 0 additions and 3 deletions
|
|
@ -712,9 +712,6 @@ request_remove_agent (Request *req, NMSecretAgent *agent)
|
|||
g_return_if_fail (req != NULL);
|
||||
g_return_if_fail (agent != NULL);
|
||||
|
||||
if (!g_slist_find (req->pending, agent))
|
||||
return;
|
||||
|
||||
/* If this agent is being asked right now, cancel the request */
|
||||
if (agent == req->current) {
|
||||
nm_secret_agent_cancel_secrets (req->current, req->current_call_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue