commit | f5b9f7b50ed858959a21e98d7150ade7f66118c3 | [log] [tgz] |
---|---|---|
author | Calvin On <con@google.com> | Wed Nov 01 13:37:18 2017 -0700 |
committer | Calvin On <con@google.com> | Thu Nov 02 11:40:47 2017 -0700 |
tree | 8ef0c2cfa7b64e54ef0b3eb723209fca71d6c364 | |
parent | a546c38130abf3baaf86a9e824703c5ecbd9f280 [diff] |
Fix StateMachine init/quit race. The quitNow method places the SM_QUIT_CMD at the front of the queue. This can cause StateMachine to throw exception if it has not yet processed the SM_INIT_CMD from start(). Bug: 67370902 Test: make checkbuild Test: StatMachineTest unittest Change-Id: I409242845854e70b77ad9b2378b69faed076847c Merged-In: I7cec7bb91e0447e3c565d33cb7c34ccf59566639