Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bc8f0e1 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

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
parent 4e6dcbd0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1038,6 +1038,7 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
            if (mModule != null) {
                mModule.detach();
                mModule = null;
                mServiceDisabled = false;
            }
        }
    }