-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: 480134 - Wakelock not released in AlarmPingSender
Setting up callbacks after initiating the background ping can cause a race condition, in which the operation completes before the callbacks are set. In this case, onSuccess() or onFailure() will not run, and the wakelock will never be released. To prevent this, specify a IMqttActionListener when creating the token. Change-Id: I25f898e9558d16b61e9102adcf76fe7f2335ea2f Signed-off-by: Kevin Cernekee <cernekee@google.com>
- Loading branch information
Kevin Cernekee
committed
Nov 13, 2015
1 parent
02fb470
commit 8a9c13d
Showing
1 changed file
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters