[gvfs] obexftp: Fix crasher due to missing D-Bus threads support



commit 070294d1bac480f45eb4b5573d4aa6b8380e7fdc
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 242250c..3ce52bb 100644
--- a/daemon/gvfsbackendobexftp.c
+++ b/daemon/gvfsbackendobexftp.c
@@ -2142,6 +2142,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]