Fix property changes being missed immediately after an obejct is added
ClosedPublic

Authored by drosca on Apr 23 2017, 1:12 PM.

Details

Summary

Fix race condition when property changes may be missed if the property
is changed immediately after the object is created.
The issue was that the connection to PropertyChanged signal was
created only after interfacesAdded signal was fired, which may have
already been too late.
This fixes it with connecting to PropertyChanged signal on all paths
in Manager::init().

BUG: 377405

Test Plan

Added test pass + old tests still pass

Diff Detail

Repository
R269 BluezQt
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
drosca created this revision.Apr 23 2017, 1:12 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 23 2017, 1:12 PM
This revision was automatically updated to reflect the committed changes.