Fixing potential crash when the task loader is stopped. (Bug 18135583)
Change-Id: I44f766e52f05c38a1b6c4a2e7942e3d6ecaae501
This commit is contained in:
committed by
Winson Chung
parent
0841cf7f37
commit
f14fdda212
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user