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
This commit is contained in:
Bob Ham
2018-07-25 09:50:41 +01:00
committed by Aleksander Morgado
parent 95cee88ccd
commit a160832fce

View File

@@ -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