base-call: don't notify a state change if it didn't change
This commit is contained in:

committed by
Dan Williams

parent
60d42de68e
commit
9a69e5363a
@@ -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,
|
||||
|
Reference in New Issue
Block a user