commit | 6114f2bbb170177191d8f717a2b363713f8ca801 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Wed Mar 02 21:47:42 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Mar 17 10:52:57 2016 +0900 |
tree | ec5b7db49f54ff38cbb012bda2cdd88c0afe987c | |
parent | 1e01f0872e84da2c9eebb862b01103ed5ca7bd17 [diff] |
Fix IdleableHandlerThread. Occasionally, ConnectivityServiceTest fails with "BUG: only one idle handler allowed". I have not been able to reproduce this consistently, but code inspection reveals an unsafe access to mIdleHandler inside queueIdle. Wrap that in a synchronized block. Change-Id: I27307e2e55fa8d937d7f043bd436894091c3c667