diff --git a/sensors/common/default/2.X/Sensor.cpp b/sensors/common/default/2.X/Sensor.cpp index 2c1cdfb60e..f8c857bf28 100644 --- a/sensors/common/default/2.X/Sensor.cpp +++ b/sensors/common/default/2.X/Sensor.cpp @@ -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);