diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-02-18 17:53:36 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-02-19 13:10:34 +0100 |
commit | fa0563594aa14e596719d3b60d88ef3ddc7c2c52 (patch) | |
tree | 8692ecf7a881f012415208ae6018cb1d66e80099 | |
parent | 7f08a4a4b5425ff9fe5961fba3bfe26b5320945f (diff) | |
download | gnome-bluetooth-fa0563594aa14e596719d3b60d88ef3ddc7c2c52.tar.gz |
settings-widget: Make device connection cancellable
In case we exit quickly.
-rw-r--r-- | lib/bluetooth-settings-widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c index 6d94791f..c81ff22c 100644 --- a/lib/bluetooth-settings-widget.c +++ b/lib/bluetooth-settings-widget.c @@ -880,7 +880,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; |