From 9df01a6e9ce3b1e792c6b4979bac2d7f85b362de Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 23 Jun 2022 14:54:15 +0200 Subject: client: Consider discovery to be stopped if there's no default adapter When somebody requests the "default-adapter-setup-mode" to be disabled but there's no default adapter, consider that we're not in setup mode. --- lib/bluetooth-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 8a81d850..f0f6b36f 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1157,6 +1157,7 @@ _bluetooth_client_set_default_adapter_discovering (BluetoothClient *client, if (adapter == NULL) { g_debug ("%s discovery requested, but no default adapter", discovering ? "Starting" : "Stopping"); + client->discovery_started = FALSE; return; } -- cgit v1.2.1