diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-14 13:10:38 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2018-10-16 17:09:21 +0000 |
commit | 9a69e5363ab1c0200e31f6f061490cd350ce4a43 (patch) | |
tree | d1309d0f53eabbfb52f4afb174076ab0747a77e6 /src | |
parent | 60d42de68e3a359d2eb0af3d3ca01ca48f3c53c6 (diff) |
base-call: don't notify a state change if it didn't change
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-base-call.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mm-base-call.c b/src/mm-base-call.c index 95ea2d00..6972276a 100644 --- a/src/mm-base-call.c +++ b/src/mm-base-call.c @@ -544,10 +544,13 @@ mm_base_call_change_state (MMBaseCall *self, MMCallState new_state, MMCallStateReason reason) { - int old_state; + MMCallState old_state; old_state = mm_gdbus_call_get_state (MM_GDBUS_CALL (self)); + if (old_state == new_state) + return; + g_object_set (self, "state", new_state, "state-reason", reason, |