agent-manager: don't try to cancel requests that already finished

Fixes: 5d1cac81a0
This commit is contained in:
Lubomir Rintel 2015-11-04 14:28:01 +01:00
parent c8e2339091
commit f558502278

View file

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