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




commit a80277d46173739f3a755bc111741b9ccf877cf4
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]