[gnome-bluetooth] lib: Fix stuck "Finishing page" for some devices
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix stuck "Finishing page" for some devices
- Date: Mon, 2 Jul 2012 10:17:42 +0000 (UTC)
commit 1c4b3508eecead7ce8b356e358b4fe39efd8963a
Author: Sjoerd Simons <sjoerd luon net>
Date: Sat Jun 30 14:27:47 2012 +0200
lib: Fix stuck "Finishing page" for some devices
Currently bluetooth_client_connect_service completes it async operation
directly when bailing (e.g. we don't have connectable service on the
remote device). This causes the bluetooth wizard to get stuck in the
Finishing page as it happens to go to this page *after* calling
bluetooth_client_connect_service.
Making the async operation complete asynchronously fixes the
"stuck" page.
https://bugzilla.gnome.org/show_bug.cgi?id=679190
lib/bluetooth-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 21bcd38..73e987d 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1870,7 +1870,7 @@ bluetooth_client_connect_service (BluetoothClient *client,
bail:
g_simple_async_result_set_op_res_gboolean (simple, res);
- g_simple_async_result_complete (simple);
+ g_simple_async_result_complete_in_idle (simple);
g_object_unref (simple);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]