Commit: 8c43713d1f6ac7fe4284df1407b3c82efd123b23
Parent: 5cd3828dbae99b51ee3fc98ca40592320664e993
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-09-09 17:35:30
Tree: 662f2e127f9694ba6a8dd500c22d8220d539d46d

gdbus: Fix sending ObjectManager/Properties signals out of order In some cases the order of the messages is altered when a message is sent without processing the pending signals first, currently this affect client_check_order unit test: /gdbus/client_check_order: ** ERROR:unit/test-gdbus-client.c:795:property_check_order: assertion failed: (g_strcmp0(string, "value1") == 0) As can be observed the value of the property is not yet updated because the signal it is still pending, once this fix is applied the test pass: /gdbus/client_check_order: OK Note that the flushing only works when g_dbus_send_message is used so places where dbus_connection_send and other variants are called directly may still change the order.

Diffstat

M gdbus/object.c | 69 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - -

1 files changed, 53 insertions(+), 16 deletions(-)

View Full Diff | Patch