[gnome-bluetooth/gnome-3-4] lib: Fix stuck "Finishing page" for some devices



commit 749a81425d86f8fb0b02efa30b82a3fa79e67374
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]