diff --git a/java_console/io/src/com/rusefi/Timeouts.java b/java_console/io/src/com/rusefi/Timeouts.java index d06ce0cf0d..ffc83bd426 100644 --- a/java_console/io/src/com/rusefi/Timeouts.java +++ b/java_console/io/src/com/rusefi/Timeouts.java @@ -10,5 +10,6 @@ public interface Timeouts { int BINARY_IO_TIMEOUT = 5 * SECOND; int CMD_TIMEOUT = 20; int READ_IMAGE_TIMEOUT = 60 * SECOND; + int CS_TIMEOUT = 3000; } diff --git a/java_console/ui/src/com/rusefi/ui/ConnectionStatus.java b/java_console/ui/src/com/rusefi/ui/ConnectionStatus.java index 76d7a08177..b908f92b9b 100644 --- a/java_console/ui/src/com/rusefi/ui/ConnectionStatus.java +++ b/java_console/ui/src/com/rusefi/ui/ConnectionStatus.java @@ -1,5 +1,6 @@ package com.rusefi.ui; +import com.rusefi.Timeouts; import com.rusefi.core.EngineTimeListener; import com.rusefi.core.MessagesCentral; import com.rusefi.core.Sensor; @@ -25,7 +26,7 @@ public class ConnectionStatus { private List listeners = new CopyOnWriteArrayList<>(); private ConnectionStatus() { - final Timer timer = new Timer(3000, new ActionListener() { + final Timer timer = new Timer(Timeouts.CS_TIMEOUT, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { setConnected(false);