mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
agent: Check if callback has sent a new request
In agent_receive_reply we first call the callback for the pending request (agent_finalize_pending) then try to send the next request in the queue. Check that the next request has not been sent already which could happen if it has been just queued by the callback.
This commit is contained in:
parent
c6e3140b38
commit
b862fd8fe1
@ -227,6 +227,7 @@ static void agent_receive_reply(struct l_dbus_message *message,
|
|||||||
|
|
||||||
agent_finalize_pending(agent, message);
|
agent_finalize_pending(agent, message);
|
||||||
|
|
||||||
|
if (!agent->pending_id)
|
||||||
agent_send_next_request(agent);
|
agent_send_next_request(agent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user