mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
GDBusConnection: don't pass boolean > 1 to _g_dbus_worker_new
This happens to work at the moment (because GDBusWorker.frozen is a gboolean and not just a 1-bit bitfield), but isn't right: the gboolean ends up with values 0 or G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING (which is more than 1). Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664558 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
95faa44f2d
commit
c4a11858cf
@ -2616,7 +2616,7 @@ initable_init (GInitable *initable,
|
||||
|
||||
connection->worker = _g_dbus_worker_new (connection->stream,
|
||||
connection->capabilities,
|
||||
(connection->flags & G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING),
|
||||
((connection->flags & G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING) != 0),
|
||||
on_worker_message_received,
|
||||
on_worker_message_about_to_be_sent,
|
||||
on_worker_closed,
|
||||
|
Loading…
Reference in New Issue
Block a user