network: reply to pending messages on network_unregister
James Prestwood
PATCH 1/1 network: reply to pending messages on network_unregister
If there is a connect_after_* message for ANQP or OWE hidden networks reply to these before unregistering the network.
--- src/network.c | 8 ++++++++ 1 file changed, 8 insertions(+)
src/network.c +8 -0
@@ -1745,6 +1745,14 @@ static void network_unregister(struct network *network, int reason) {struct l_dbus *dbus =dbus_get_bus (); +if (network->connect_after_anqp) +dbus_pending_reply (&network->connect_after_anqp, +dbus_error_aborted (network->connect_after_anqp)); + +if (network->connect_after_owe_hidden) +dbus_pending_reply (&network->connect_after_owe_hidden, +dbus_error_aborted (network->connect_after_owe_hidden)); +agent_request_cancel (network->agent_request, reason);network_settings_close (network);
Signature · 1 line
2.31.1
Denis Kenzior
AppliedHi James,
Quoted 6 lines · James Prestwood
If there is a connect_after_* message for ANQP or OWE hidden networks reply to these before unregistering the network.
--- src/network.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Applied, thanks.
Regards,
-Denis