Fix handling of InterruptedExceptions

This commit is contained in:
Cameron Gutman committed 2022-05-22 15:31:06 -05:00
1 parent 4901b0c78f
commit fb09c9692c
8 files changed
+115 -40

No files matched your search

@@ -128,6 +128,13 @@ public class CachedAppAssetLoader {
try {
Thread.sleep((int) (1000 + (Math.random() * 500)));
} catch (InterruptedException e) {
e.printStackTrace();
// InterruptedException clears the thread's interrupt status. Since we can't
// handle that here, we will re-interrupt the thread to set the interrupt
// status back to true.
Thread.currentThread().interrupt();
return null;
}
}