Sensors: Fix the mLock dead lock when enable sensor fail
SensorSeverce::enable will get the mLock, if enable the sensor fail it will call the cleanupWithDisable and get the mLock too. This will be a dead lock and crash the Android framewor. The mLock should be used by the disable function but not used in the cleanupWithDisable function. Change-Id: I789fe7bf0ef944ae8852016bea92e8a373f469cd
Loading
Please register or sign in to comment