Merge "Fixing potential crash when the task loader is stopped. (Bug 18135583)" into lmp-mr1-dev
automerge: b55f7d7
* commit 'b55f7d79d19e8d8786fab8faabedb2f253bfacf8':
Fixing potential crash when the task loader is stopped. (Bug 18135583)
This commit is contained in:
@@ -171,6 +171,9 @@ class TaskResourceLoader implements Runnable {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SystemServicesProxy ssp = mSystemServicesProxy;
|
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
|
// Load the next item from the queue
|
||||||
final Task t = mLoadQueue.nextTask();
|
final Task t = mLoadQueue.nextTask();
|
||||||
|
|||||||
Reference in New Issue
Block a user