Restart attempts hangs up console fix #3826

This commit is contained in:
rusefillc 2022-01-22 21:37:19 -05:00
parent 34514975ab
commit 1e435ad2fb
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import java.net.URL;
import java.util.concurrent.atomic.AtomicReference;
public class rusEFIVersion {
public static final int CONSOLE_VERSION = 20220118;
public static final int CONSOLE_VERSION = 20220122;
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
public static long classBuildTimeMillis() {

View File

@ -87,8 +87,10 @@ public class ConsoleUI {
tabbedPane.addTab("Log Viewer", new LogViewer(uiContext, engineSnifferPanel));
new ConnectionWatchdog(Timeouts.CONNECTION_RESTART_DELAY, () -> {
FileLog.MAIN.logLine("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY);
linkManager.restart();
uiContext.getLinkManager().execute(() -> {
FileLog.MAIN.logLine("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY);
linkManager.restart();
});
}).start();
uiContext.DetachedRepositoryINSTANCE.init(getConfig().getRoot().getChild("detached"));