From a160832fced9c1e944e119ffdb47ff6460abc8aa Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Wed, 25 Jul 2018 09:50:41 +0100 Subject: iface-modem-voice: fix ordering of D-Bus signals for call addition/deletion To have proper ordering in the D-Bus signals, the skeleton's property changes must be flushed before the Call{Add,Delet}ed signals are emitted. Without this flush, the emission of the PropertiesChanged signal is delayed until the main loop is idle. This causes problems on the client side, for example the CallAdded signal being received before the Calls property contains the call. Closes: #81 --- src/mm-iface-modem-voice.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index 23c3ba6a..e9669f2a 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -487,6 +487,8 @@ update_message_list (MmGdbusModemVoice *skeleton, paths = mm_call_list_get_paths (list); mm_gdbus_modem_voice_set_calls (skeleton, (const gchar *const *)paths); g_strfreev (paths); + + g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (skeleton)); } static void -- cgit v1.2.3-70-g09d2