[gnome-bluetooth/wip/hadess/fix-keyboard-cancel: 5/5] settings-widget: Make device connection cancellable
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/fix-keyboard-cancel: 5/5] settings-widget: Make device connection cancellable
- Date: Thu, 18 Feb 2021 17:23:40 +0000 (UTC)
commit f72c1f860ddfc59af32472b5777d4afdc1d8f280
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 18 17:53:36 2021 +0100
settings-widget: Make device connection cancellable
In case we exit quickly.
lib/bluetooth-settings-widget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 54efa486..21080fc4 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -851,7 +851,7 @@ connect_timeout_cb (gpointer user_data)
SetupConnectData *data = (SetupConnectData *) user_data;
BluetoothSettingsWidgetPrivate *priv = BLUETOOTH_SETTINGS_WIDGET_GET_PRIVATE (data->self);
- bluetooth_client_connect_service (priv->client, data->device, TRUE, NULL, connect_callback, data);
+ bluetooth_client_connect_service (priv->client, data->device, TRUE, priv->cancellable,
connect_callback, data);
data->timeout_id = 0;
return G_SOURCE_REMOVE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]