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

Commit eba33c37 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "If the handle does not exist, it should return false" into main am: 16fbe775

parents 0fe7f9e6 16fbe775
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ bool SensorService::SensorEventConnection::addSensor(int32_t handle) {

bool SensorService::SensorEventConnection::removeSensor(int32_t handle) {
    Mutex::Autolock _l(mConnectionLock);
    if (mSensorInfo.erase(handle) >= 0) {
    if (mSensorInfo.erase(handle) > 0) {
        return true;
    }
    return false;