mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Increase timout for shutdown, reduce delay at remove offers at shutdown
This commit is contained in:
parent
ee9df3e476
commit
f15bbf98eb
@ -160,7 +160,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||
if (offerBookService.isBootstrapped()) {
|
||||
openOffers.forEach(openOffer -> offerBookService.removeOfferAtShutDown(openOffer.getOffer()));
|
||||
if (completeHandler != null)
|
||||
UserThread.runAfter(completeHandler::run, size * 500 + 500, TimeUnit.MILLISECONDS);
|
||||
UserThread.runAfter(completeHandler::run, size * 50 + 500, TimeUnit.MILLISECONDS);
|
||||
} else {
|
||||
if (completeHandler != null)
|
||||
completeHandler.run();
|
||||
@ -174,7 +174,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||
}, errorMessage -> {
|
||||
}));
|
||||
if (completeHandler != null)
|
||||
UserThread.runAfter(completeHandler::run, size * 500 + 500, TimeUnit.MILLISECONDS);
|
||||
UserThread.runAfter(completeHandler::run, size * 50 + 500, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -379,8 +379,8 @@ public class BitsquareApp extends Application {
|
||||
injector.getInstance(WalletService.class).shutDown();
|
||||
});
|
||||
});
|
||||
// we wait max 5 sec.
|
||||
UserThread.runAfter(resultHandler::handleResult, 5);
|
||||
// we wait max 20 sec.
|
||||
UserThread.runAfter(resultHandler::handleResult, 20);
|
||||
} else {
|
||||
UserThread.runAfter(resultHandler::handleResult, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user