Merge "Fixing potential crash when the task loader is stopped. (Bug 18135583)" into lmp-mr1-dev

This commit is contained in:
Winson Chung
2014-10-27 23:39:09 +00:00
committed by Android (Google) Code Review

View File

@@ -171,6 +171,9 @@ class TaskResourceLoader implements Runnable {
}
} else {
SystemServicesProxy ssp = mSystemServicesProxy;
// If we've stopped the loader, then fall thorugh to the above logic to wait on
// the load thread
if (ssp == null) continue;
// Load the next item from the queue
final Task t = mLoadQueue.nextTask();