[gnome-bluetooth/wip/hadess/discovery-state-restart: 2/4] client: Consider discovery to be stopped if there's no default adapter




commit 9df01a6e9ce3b1e792c6b4979bac2d7f85b362de
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 23 14:54:15 2022 +0200

    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;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]