Reset mServiceDisabled when service dies

When we don't reset the state, if the service died while it was
disabled, future attempts to load models would fail.

Fixes: 171953855
Test: Verified basic sound trigger cases as well as recovery from
      STHAL and audioserver crashes.
Change-Id: I32929123aa936cbee3101ec0ef65c52dd28b240b
This commit is contained in:
Ytai Ben-Tsvi
2020-12-08 10:47:08 -08:00
parent 4e6dcbd017
commit 5bc8f0e178

View File

@@ -1038,6 +1038,7 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
if (mModule != null) {
mModule.detach();
mModule = null;
mServiceDisabled = false;
}
}
}