mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
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:
parent
eb70e54370
commit
c06be20515
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user