OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5105960
)
Revert "Fix sockfd leakage in SensorService. Remove sockfd from Looper when the...
author
Aravind Akella
<aakella@google.com>
Sat, 27 Sep 2014 02:06:32 +0000
(
02:06
+0000)
committer
Aravind Akella
<aakella@google.com>
Sat, 27 Sep 2014 02:06:32 +0000
(
02:06
+0000)
This reverts commit
5105960d49bfa86efeeea8f87c87aa96b5771c37
.
Change-Id: I4d39ded2e50ef8a8e0aac27e438876203385a1f0
services/sensorservice/SensorService.cpp
patch
|
blob
|
history
diff --git
a/services/sensorservice/SensorService.cpp
b/services/sensorservice/SensorService.cpp
index
77ada40
..
f953a96
100644
(file)
--- a/
services/sensorservice/SensorService.cpp
+++ b/
services/sensorservice/SensorService.cpp
@@
-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