Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f14fdda2 authored by winsonchung's avatar winsonchung Committed by Winson Chung
Browse files

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

Change-Id: I44f766e52f05c38a1b6c4a2e7942e3d6ecaae501
parent 0841cf7f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();