From 8ff556be3cc3c4ff740efa1ec8c95e5d10c182c9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 19 Jan 2011 17:16:21 -0600 Subject: [PATCH] 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. --- src/nm-agent-manager.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/nm-agent-manager.c b/src/nm-agent-manager.c index 8d40044f83..2e88ee201c 100644 --- a/src/nm-agent-manager.c +++ b/src/nm-agent-manager.c @@ -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);