diff --git a/libs/gui/SensorEventQueue.cpp b/libs/gui/SensorEventQueue.cpp index b0d0f12c6..f9355249a 100644 --- a/libs/gui/SensorEventQueue.cpp +++ b/libs/gui/SensorEventQueue.cpp @@ -110,7 +110,7 @@ status_t SensorEventQueue::waitForEvent() const } } while (result != fd); - return result; + return (result == fd) ? status_t(NO_ERROR) : result; } status_t SensorEventQueue::wake() const