commit | b5962e73e841455b8e2a4e2d5c0ef0a19d62a803 | [log] [tgz] |
---|---|---|
author | Jake Hamby <jhamby@google.com> | Wed Jun 15 19:17:08 2011 -0700 |
committer | Jake Hamby <jhamby@google.com> | Wed Jun 15 19:39:26 2011 -0700 |
tree | 1bc3f0cffdfb81fcbc5b9741d28540dc558324e4 | |
parent | 0a4d51d581ac1f3fad1f63ffea07f2560b2788e3 [diff] |
Fix race condition in WakeLocks. A previous fix to PowerManager.WakeLock introduced a new bug. When a reference counted wakelock (such as SMSDispatcher) is acquired multiple times in quick succession with a timeout, the first timeout would remove the second callback from the handler, decrement the reference count, but then the wakelock never gets released because the second callback has been removed. Bug: 4535237 Change-Id: I4f1240189bf3ed3396c86200c687282597b107d6