Merge "Add logging to verify when LoaderTask is stopped or cancelled" into main

This commit is contained in:
Charlie Anderson authored and Android (Google) Code Review committed 2024-12-05 02:34:09 +00:00
commit a2464c6609
1 file changed
+2 -1
@@ -389,7 +389,7 @@ public class LoaderTask implements Runnable {
}
} catch (CancellationException e) {
// Loader stopped, ignore
logASplit("Cancelled");
FileLog.w(TAG, "LoaderTask cancelled:", e);
} catch (Exception e) {
memoryLogger.printLogs();
throw e;
@@ -398,6 +398,7 @@ public class LoaderTask implements Runnable {
}
public synchronized void stopLocked() {
FileLog.w(TAG, "LoaderTask#stopLocked:", new Exception());
mStopped = true;
this.notify();
}