commit | 3a9223ebf881b10996dac34b00e51e08a602d44b | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Nov 10 17:50:28 2010 -0800 |
committer | Mathias Agopian <mathias@google.com> | Wed Nov 10 17:50:28 2010 -0800 |
tree | 68d9fb04e5f7b07ab2c47e93c4eb8d3879c8e8c4 | |
parent | 77f5c9542e159cb9f2f2908227212d4add8ce74c [diff] |
record the last event received regardless of having clients or not We only recorded the last received event (which is needed when a sensor is activated on a connection) when there was some connection active. This should fix an issue where sometimes the light sensor doesn't return an event whent activated. we also didn't need to hold the main lock while dispatching events to clients. Change-Id: I6c6386c040051ce205e3c0516c678e0603fa45e1