Skip to content

Commit 8d9505b

Browse files
authored
fix(android): added synchronous handler timeout to prevent deadlock
2 parents ff86bfb + 712c83b commit 8d9505b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-carto/platforms/android/java/com/akylas/carto/additions/SynchronousHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static void postAndWait(final Handler handler, final Runnable r) {
6363
synchronized (runnable) {
6464
try {
6565
if (!runnable.isFinished()) {
66-
runnable.wait();
66+
runnable.wait(300);
6767
}
6868
} catch (InterruptedException is) {
6969
// ignore

0 commit comments

Comments
 (0)