Fix authentication issues, store address

This commit is contained in:
Manfred Karrer 2015-11-12 02:00:04 +01:00
parent f8adaaed62
commit 85427d7bde
22 changed files with 553 additions and 598 deletions

View file

@ -44,6 +44,7 @@ import org.reactfx.util.FxTimer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
import javax.inject.Named;
import java.io.File;
import java.time.Duration;
@ -176,7 +177,7 @@ public class OpenOfferManager {
shutDown(null);
}
public void shutDown(Runnable completeHandler) {
public void shutDown(@Nullable Runnable completeHandler) {
if (timer != null)
timer.cancel();
@ -188,7 +189,8 @@ public class OpenOfferManager {
offerBookService.removeOfferAtShutDown(openOffer.getOffer());
}
FxTimer.runLater(Duration.ofMillis(500), completeHandler::run);
if (completeHandler != null)
FxTimer.runLater(Duration.ofMillis(500), completeHandler::run);
}
}