aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-iface-modem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 5a2b2bd8..258a35c8 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -1001,11 +1001,16 @@ mm_iface_modem_update_state (MMIfaceModem *self,
NULL);
/* Signal status change */
- if (skeleton)
+ if (skeleton) {
+ /* Flush current change before signaling the state change,
+ * so that clients get the proper state already in the
+ * state-changed callback */
+ g_dbus_interface_skeleton_flush (G_DBUS_INTERFACE_SKELETON (skeleton));
mm_gdbus_modem_emit_state_changed (skeleton,
old_state,
new_state,
reason);
+ }
/* If we go to registered state (from unregistered), setup signal
* quality and access technologies periodic retrieval */