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>
This commit is contained in:
Michael Kuhn 2010-12-22 10:11:11 +01:00 committed by David Zeuthen
parent eb70e54370
commit c06be20515

View File

@ -990,11 +990,16 @@ on_run (GSocketService *service,
if (server->flags & G_DBUS_SERVER_FLAGS_RUN_IN_THREAD) if (server->flags & G_DBUS_SERVER_FLAGS_RUN_IN_THREAD)
{ {
gboolean claimed;
claimed = FALSE;
g_signal_emit (server, g_signal_emit (server,
_signals[NEW_CONNECTION_SIGNAL], _signals[NEW_CONNECTION_SIGNAL],
0, 0,
connection); connection,
g_dbus_connection_start_message_processing (connection); &claimed);
if (claimed)
g_dbus_connection_start_message_processing (connection);
g_object_unref (connection); g_object_unref (connection);
} }
else else