diff --git a/java_console/ui/src/main/java/com/rusefi/ui/console/MainFrame.java b/java_console/ui/src/main/java/com/rusefi/ui/console/MainFrame.java index a6d3194aae..a9a082c8d0 100644 --- a/java_console/ui/src/main/java/com/rusefi/ui/console/MainFrame.java +++ b/java_console/ui/src/main/java/com/rusefi/ui/console/MainFrame.java @@ -82,14 +82,14 @@ public class MainFrame { @Override public void onConnectionEstablished() { - SwingUtilities.invokeLater(() -> { - new ConnectionWatchdog(Timeouts.CONNECTION_RESTART_DELAY, () -> { - linkManager.execute(() -> { - log.info("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY); - linkManager.restart(); - }); - }).start(); + new ConnectionWatchdog(Timeouts.CONNECTION_RESTART_DELAY, () -> { + linkManager.execute(() -> { + log.info("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY); + linkManager.restart(); + }); + }).start(); + SwingUtilities.invokeLater(() -> { tabbedPane.settingsTab.showContent(); tabbedPane.logsManager.showContent(); tabbedPane.fuelTunePane.showContent();