[evolution-data-server] Add a workaround for glib bug 793727



commit 1bdbb4cd2e0f9df635f32df4bf70c2b705e73823
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 12 16:11:59 2018 +0100

    Add a workaround for glib bug 793727

 src/libebackend/e-dbus-server.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libebackend/e-dbus-server.c b/src/libebackend/e-dbus-server.c
index 2fa2697..102c952 100644
--- a/src/libebackend/e-dbus-server.c
+++ b/src/libebackend/e-dbus-server.c
@@ -389,6 +389,13 @@ e_dbus_server_class_init (EDBusServerClass *class)
 static void
 e_dbus_server_init (EDBusServer *server)
 {
+#if !GLIB_CHECK_VERSION(2, 58, 0)
+       /* Workaround glib bug https://bugzilla.gnome.org/show_bug.cgi?id=793727
+          Do not place this into class_init(), otherwise it can trigger
+          deadlock under _g_dbus_initialize () at gdbusprivate.c:1950 */
+       g_network_monitor_get_default ();
+#endif
+
        server->priv = E_DBUS_SERVER_GET_PRIVATE (server);
        server->priv->main_loop = g_main_loop_new (NULL, FALSE);
        server->priv->wait_for_client = FALSE;


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