[gvfs/gnome-3-6] obexftp: Fix crasher due to missing D-Bus threads support



commit 37bd29b11b40e63a35a40c9c9337e434174f29ea
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Mar 31 01:48:43 2013 +0100

    obexftp: Fix crasher due to missing D-Bus threads support
    
    Spotted by Serge Gavrilov <serge pdmi ras ru>
    
    The GDbus port removed the need for us to initialise
    libdbus' threads support, and commit
    7d4bd61385cd56db5507ee31b14724244b637da4
    removed the last call to it.
    
    However, the obexftp backend still hasn't fully been ported
    to GDbus, and needs this threading support. Re-add it directly
    in the backend.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693574

 daemon/gvfsbackendobexftp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendobexftp.c b/daemon/gvfsbackendobexftp.c
index 69e3267..c3057c4 100644
--- a/daemon/gvfsbackendobexftp.c
+++ b/daemon/gvfsbackendobexftp.c
@@ -2145,6 +2145,8 @@ g_vfs_backend_obexftp_class_init (GVfsBackendObexftpClass *klass)
   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
   GVfsBackendClass *backend_class = G_VFS_BACKEND_CLASS (klass);
 
+  dbus_threads_init_default ();
+
   gobject_class->finalize = g_vfs_backend_obexftp_finalize;
 
   backend_class->mount = do_mount;


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