[gnome-online-accounts] kerberos: use thread default context, not default context for loop



commit 04460d4303ca0be8f419e8b5474effd9a0380aaf
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 13 16:58:42 2012 +0100

    kerberos: use thread default context, not default context for loop
    
    ensure_credentials_sync sets up a thread default context for its
    duration.  It also calls get_ticket_sync which then goes and uses
    the global default context. This causes dbus timeouts for Alban
    Browaeys.
    
    This fix changes get_ticket_sync to always use the thread default
    context, which fixes ensure_credentials_sync time outs, but retains
    the proper context for e.g. refresh_account
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688018

 src/goabackend/goakerberosprovider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index 5624df5..7e75be0 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -726,7 +726,7 @@ get_ticket_sync (GoaKerberosProvider *self,
     }
 
   memset (&request, 0, sizeof (SignInRequest));
-  request.loop = g_main_loop_new (NULL, FALSE);
+  request.loop = g_main_loop_new (g_main_context_get_thread_default (), FALSE);
   request.error = NULL;
 
   sign_in_identity (self,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]