Fixing potential crash when the task loader is stopped. (Bug 18135583)

Change-Id: I44f766e52f05c38a1b6c4a2e7942e3d6ecaae501
This commit is contained in:
winsonchung
2014-10-27 12:01:14 -07:00
committed by Winson Chung
parent 0841cf7f37
commit f14fdda212

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();