Limit GCM Wakelock to 5s

fixes #53
This commit is contained in:
mar-v-in 2015-12-03 18:49:53 -08:00
parent 93487b51ea
commit b6506209a9
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class McsService extends Service implements Handler.Callback {
public int onStartCommand(Intent intent, int flags, int startId) {
synchronized (McsService.class) {
if (rootHandler != null) {
wakeLock.acquire();
wakeLock.acquire(5000);
Object reason = intent == null ? "I am so sticky!" :
intent.hasExtra(EXTRA_REASON) ? intent.getExtras().get(EXTRA_REASON) : intent;
if (ACTION_CONNECT.equals(intent.getAction())) {