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:
Dan Williams 2011-01-19 17:16:21 -06:00
parent 7ddf9c5e72
commit 8ff556be3c

View file

@ -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);