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

Skip to content
Commit 785dfe7f authored by Hall Liu's avatar Hall Liu
Browse files

Fix race condition in Ringer

Race condition is as follows:
Initially: mIsVibrating == false

Thread 1: mVibrator.vibrate (maybeStartVibration)
Thread 2: checks mIsVibrating == false, doesn't bother stopping it
Thread 1: sets mVibrating = true
Thread 2: *never stops the vibrator*

Fix is to set mIsVibrating to true before actually starting the ringer.

Fixes: 140013629
Test: manual
Change-Id: I1eb0ee02ae54494691499e1c4fbf4dd6ae7760b5
parent 728c412a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment