Skip to contentSkip to conversation

network: reply to pending messages on network_unregister

PATCH Applied James Prestwood 2 participants 2 messages Sep 17, 2021

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

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
index 711fb296..7240b029 100644
@@ -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
Applied
#1 lore raw

Hi 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