mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix UserThread.await() hanging on error
This commit is contained in:
parent
821d949fa7
commit
153f708a7c
@ -72,8 +72,13 @@ public class UserThread {
|
||||
} else {
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
execute(() -> {
|
||||
command.run();
|
||||
latch.countDown();
|
||||
try {
|
||||
command.run();
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
} finally {
|
||||
latch.countDown();
|
||||
}
|
||||
});
|
||||
try {
|
||||
latch.await();
|
||||
|
Loading…
Reference in New Issue
Block a user