mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-28 09:24:15 -04:00
Add timeout handling
This commit is contained in:
parent
c17c08b07a
commit
b440469ba7
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ import java.util.Optional;
|
|||
import java.util.Set;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
@ -214,7 +215,7 @@ public class WalletService {
|
|||
}, Threading.USER_THREAD);
|
||||
walletAppKit.startAsync();
|
||||
|
||||
return status.mergeWith(downloadProgress);
|
||||
return status.mergeWith(downloadProgress).timeout(20, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
private void initWallet() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue