diff options
author | Martijn Coenen <maco@google.com> | 2012-09-20 20:42:52 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-09-21 09:43:26 -0700 |
commit | 04b8291cd90635741c1a93cd19024cf07fe0dca8 (patch) | |
tree | f4d5012d8a1ae2b25b60facfb06cf6c1aff25fe8 /src | |
parent | 2cd4a00810b6d7de2189dd37698127329d7c9d7f (diff) | |
download | packages_apps_nfc-04b8291cd90635741c1a93cd19024cf07fe0dca8.zip packages_apps_nfc-04b8291cd90635741c1a93cd19024cf07fe0dca8.tar.gz packages_apps_nfc-04b8291cd90635741c1a93cd19024cf07fe0dca8.tar.bz2 |
Don't hold the routing wakelock longer than a minute.
Until we figure out why routing gets stuck, don't hold
the wakelock indefinitely.
Bug: 7113095
Change-Id: If4d1ed8d8855e2b50ddae6d06e886faf0d58db6d
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index e8fc9e4..ca1713d 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -1420,7 +1420,7 @@ public class NfcService extends Application implements DeviceHostListener { synchronized (this) { if (!mWatchDogCanceled) { // Trigger watch-dog - Log.e(TAG, "Watch dog triggered"); + Log.e(TAG, "--- NFC controller stuck while applying routing ---"); mDeviceHost.doAbort(); } } @@ -1840,7 +1840,11 @@ public class NfcService extends Application implements DeviceHostListener { } mScreenState = params[0].intValue(); - mRoutingWakeLock.acquire(); + // HACK: We've seen applying the routing configuration + // getting stuck. The operation should normally easily + // complete within a minute, so don't hold the wakelock + // any longer than that. + mRoutingWakeLock.acquire(60000); try { applyRouting(false); } finally { |