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()) {
|
if (offerBookService.isBootstrapped()) {
|
||||||
openOffers.forEach(openOffer -> offerBookService.removeOfferAtShutDown(openOffer.getOffer()));
|
openOffers.forEach(openOffer -> offerBookService.removeOfferAtShutDown(openOffer.getOffer()));
|
||||||
if (completeHandler != null)
|
if (completeHandler != null)
|
||||||
UserThread.runAfter(completeHandler::run, size * 500 + 500, TimeUnit.MILLISECONDS);
|
UserThread.runAfter(completeHandler::run, size * 50 + 500, TimeUnit.MILLISECONDS);
|
||||||
} else {
|
} else {
|
||||||
if (completeHandler != null)
|
if (completeHandler != null)
|
||||||
completeHandler.run();
|
completeHandler.run();
|
||||||
@ -174,7 +174,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
|||||||
}, errorMessage -> {
|
}, errorMessage -> {
|
||||||
}));
|
}));
|
||||||
if (completeHandler != null)
|
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();
|
injector.getInstance(WalletService.class).shutDown();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// we wait max 5 sec.
|
// we wait max 20 sec.
|
||||||
UserThread.runAfter(resultHandler::handleResult, 5);
|
UserThread.runAfter(resultHandler::handleResult, 20);
|
||||||
} else {
|
} else {
|
||||||
UserThread.runAfter(resultHandler::handleResult, 1);
|
UserThread.runAfter(resultHandler::handleResult, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user