[glib/glib-2-28] Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
- Date: Fri, 15 Apr 2011 10:27:16 +0000 (UTC)
commit c06be2051541644938616e0da6f1a02b71bc56d5
Author: Michael Kuhn <suraia ikkoku de>
Date: Wed Dec 22 10:11:11 2010 +0100
Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
https://bugzilla.gnome.org/show_bug.cgi?id=637561
Signed-off-by: David Zeuthen <davidz redhat com>
gio/gdbusserver.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c
index 8434736..7f79c68 100644
--- a/gio/gdbusserver.c
+++ b/gio/gdbusserver.c
@@ -990,11 +990,16 @@ on_run (GSocketService *service,
if (server->flags & G_DBUS_SERVER_FLAGS_RUN_IN_THREAD)
{
+ gboolean claimed;
+
+ claimed = FALSE;
g_signal_emit (server,
_signals[NEW_CONNECTION_SIGNAL],
0,
- connection);
- g_dbus_connection_start_message_processing (connection);
+ connection,
+ &claimed);
+ if (claimed)
+ g_dbus_connection_start_message_processing (connection);
g_object_unref (connection);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]