diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-06-23 14:54:15 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-06-29 16:06:29 +0200 |
commit | 9df01a6e9ce3b1e792c6b4979bac2d7f85b362de (patch) | |
tree | ade203b6cadd348bbb58e52ebf396ff4c2f90e61 /lib | |
parent | bb5ed37f0b1b87a7c939620cf9319a74a2e852ca (diff) | |
download | gnome-bluetooth-9df01a6e9ce3b1e792c6b4979bac2d7f85b362de.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bluetooth-client.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |