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

Commit 7cd44675 authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in recovering from HAL crash"

parents c455927f a23eaa77
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -174,7 +174,17 @@ class SoundTriggerModule implements IHwBinder.DeathRecipient {
        for (Session session : mActiveSessions) {
            session.moduleDied();
        }
        reset();
    }

    /**
     * Resets the transient state of this object.
     */
    private void reset() {
        attachToHal();
        // We conservatively assume that external capture is active until explicitly told otherwise.
        mRecognitionAvailable = mProperties.concurrentCapture;
        mNumLoadedModels = 0;
    }

    /**