mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-08 06:32:18 -04:00
Use extra classes for seednode
This commit is contained in:
parent
e456883f9b
commit
97629cb0cd
15 changed files with 160 additions and 106 deletions
|
@ -113,7 +113,8 @@ public class ArbitratorManager {
|
|||
}
|
||||
|
||||
public void shutDown() {
|
||||
MoreExecutors.shutdownAndAwaitTermination(republishArbitratorExecutor, 500, TimeUnit.MILLISECONDS);
|
||||
if (republishArbitratorExecutor != null)
|
||||
MoreExecutors.shutdownAndAwaitTermination(republishArbitratorExecutor, 500, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
public void onAllServicesInitialized() {
|
||||
|
@ -189,7 +190,7 @@ public class ArbitratorManager {
|
|||
resultHandler.handleResult();
|
||||
|
||||
if (arbitratorsObservableMap.size() > 0)
|
||||
UserThread.runAfter(() -> applyArbitrators(), 1);
|
||||
UserThread.runAfter(() -> applyArbitrators(), 100, TimeUnit.MILLISECONDS);
|
||||
},
|
||||
errorMessageHandler::handleErrorMessage);
|
||||
}
|
||||
|
|
|
@ -153,7 +153,7 @@ public class TradeManager {
|
|||
firstPeerAuthenticatedListener = new FirstPeerAuthenticatedListener() {
|
||||
@Override
|
||||
public void onFirstPeerAuthenticated() {
|
||||
// give a bit delay to be sure other listeners has dont its jobs
|
||||
// give a bit delay to be sure other listeners have executed its work
|
||||
UserThread.runAfter(() -> initPendingTrades(), 100, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue