diff options
author | Bob Ham <bob.ham@puri.sm> | 2018-07-25 09:50:41 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-07-27 18:30:50 +0200 |
commit | a160832fced9c1e944e119ffdb47ff6460abc8aa (patch) | |
tree | 3195262f0a0dd2a75584775dfb2fd78b6e7b9aea /src/mm-iface-modem-voice.c | |
parent | 95cee88ccd7a87147ef8222ed575eb12c73320ee (diff) |
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
Diffstat (limited to 'src/mm-iface-modem-voice.c')
-rw-r--r-- | src/mm-iface-modem-voice.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |