base-call: don't update state twice
The mm_gdbus_call_set_() methods update the properties in the same way as via g_object_set(), no need to do it twice.
This commit is contained in:

committed by
Dan Williams

parent
4409ccffcc
commit
cfdd6ffc95
@@ -551,18 +551,9 @@ mm_base_call_change_state (MMBaseCall *self,
|
||||
if (old_state == new_state)
|
||||
return;
|
||||
|
||||
g_object_set (self,
|
||||
"state", new_state,
|
||||
"state-reason", reason,
|
||||
NULL);
|
||||
|
||||
mm_gdbus_call_set_state (MM_GDBUS_CALL (self), new_state);
|
||||
mm_gdbus_call_set_state_reason (MM_GDBUS_CALL (self), reason);
|
||||
|
||||
mm_gdbus_call_emit_state_changed (MM_GDBUS_CALL (self),
|
||||
old_state,
|
||||
new_state,
|
||||
reason);
|
||||
mm_gdbus_call_emit_state_changed (MM_GDBUS_CALL (self), old_state, new_state, reason);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user