From b2ba9c1a0d65a3027e39e9ad1e07ffe69d35f530 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 23 Feb 2022 14:47:32 -0500 Subject: [PATCH] console reconnect does not work #3958 this is not UI related, invoking right away --- .../main/java/com/rusefi/ui/console/MainFrame.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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();