Use extra classes for seednode

This commit is contained in:
Manfred Karrer 2016-01-01 20:26:16 +01:00
parent e456883f9b
commit 97629cb0cd
15 changed files with 160 additions and 106 deletions

View file

@ -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);
}

View file

@ -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);
}
};