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

Commit 5d346fb7 authored by Aditya Chitnis's avatar Aditya Chitnis
Browse files

Initialize mStopThread in Sensor constructor

Bug: 294653181
Bug: 294500012
Test: Presubmit
Change-Id: I9c9a9119eb75e364d3969ae77248370937f1f3c5
parent fed7d54d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ Sensor::Sensor(ISensorsEventCallback* callback)
    : mIsEnabled(false),
      mSamplingPeriodNs(0),
      mLastSampleTimeNs(0),
      mStopThread(false),
      mCallback(callback),
      mMode(OperationMode::NORMAL) {
    mRunThread = std::thread(startThread, this);