commit | 0cbda755e98b0561f10bc0fa99d504a0fc826924 | [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 | dad8897a98b72a96780045edfa49aac04e6249e9 [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