Merge "DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls" into cw-e-dev
This commit is contained in:
commit
f7eed1ea07
1 changed files with 5 additions and 1 deletions
|
@ -155,7 +155,11 @@ void *writerTask(void* ptr) {
|
|||
ALOGV("writerTask before poll() - bufferSize = %d", bufferSize);
|
||||
eventsPolled = device->poll(device, buffer, bufferSize);
|
||||
ALOGV("writerTask poll() got %d events.", eventsPolled);
|
||||
if (eventsPolled == 0) {
|
||||
if (eventsPolled <= 0) {
|
||||
if (eventsPolled < 0) {
|
||||
ALOGV("writerTask ignored error %d from %s", eventsPolled, device->common.module->name);
|
||||
ALOGE("ERROR: Fix %s so it does not return error from poll()", device->common.module->name);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
pthread_mutex_lock(&queue_mutex);
|
||||
|
|
Loading…
Reference in a new issue