Revert "Fix sockfd leakage in SensorService. Remove sockfd from Looper when the connection is removed from mActiveConnections."
This reverts commit 5105960d49
.
Change-Id: I4d39ded2e50ef8a8e0aac27e438876203385a1f0
This commit is contained in:
parent
5105960d49
commit
678f4fce90
@ -653,7 +653,6 @@ void SensorService::cleanupConnection(SensorEventConnection* c)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
mLooper->removeFd(c->getSensorChannel()->getSendFd());
|
||||
mActiveConnections.remove(connection);
|
||||
BatteryService::cleanup(c->getUid());
|
||||
if (c->needsWakeLock()) {
|
||||
@ -800,7 +799,6 @@ status_t SensorService::cleanupWithoutDisableLocked(
|
||||
BatteryService::disableSensor(connection->getUid(), handle);
|
||||
}
|
||||
if (connection->hasAnySensor() == false) {
|
||||
mLooper->removeFd(connection->getSensorChannel()->getSendFd());
|
||||
mActiveConnections.remove(connection);
|
||||
}
|
||||
// see if this sensor becomes inactive
|
||||
|
Loading…
Reference in New Issue
Block a user