| commit | ef2c62e79c192e124857ac30332e31e4880f376c | [log] [tgz] |
|---|---|---|
| author | Atneya Nair <atneya@google.com> | Thu May 04 19:31:55 2023 -0700 |
| committer | Atneya Nair <atneya@google.com> | Wed May 10 19:43:55 2023 +0000 |
| tree | 288b5ae84da35e227a4bbea8ba0eb45750532516 | |
| parent | d2c2751bffb443ccda8d9e1a4e13bb43f3591a53 [diff] |
Ensure ST does not remain requested after error
After an error, since the service notifies the client, the service
should not attempt to restart recognition again when a state update
occurs, otherwise a state mismatch will occur.
Also, null out the recog token when the model state is cleared.
Bug: 272147641
Fixes: 280911900
Test: AlwaysOnHotwordDetectorTest#
testRecognitionNotRequested_afterResumeFailed
Change-Id: I3f7c441a87292d767b6296d6075218a29850da2c