auto-sync
This commit is contained in:
parent
ff80f25b54
commit
9697d25ff9
|
@ -1,5 +1,6 @@
|
|||
package com.rusefi.ui;
|
||||
package com.rusefi.io;
|
||||
|
||||
import com.rusefi.FileLog;
|
||||
import com.rusefi.Timeouts;
|
||||
import com.rusefi.core.EngineTimeListener;
|
||||
import com.rusefi.io.LinkManager;
|
||||
|
@ -9,9 +10,10 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
|
||||
public class ConnectionWatchdog {
|
||||
static final Timer reconnectTimer = new Timer(Timeouts.CONNECTION_RESTART_DELAY, new ActionListener() {
|
||||
private static final Timer reconnectTimer = new Timer(Timeouts.CONNECTION_RESTART_DELAY, new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
FileLog.MAIN.logLine("ConnectionWatchdog.reconnectTimer restarting");
|
||||
LinkManager.restart();
|
||||
reconnectTimer.restart();
|
||||
}
|
||||
|
@ -33,4 +35,8 @@ public class ConnectionWatchdog {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void onDataArrived() {
|
||||
reconnectTimer.restart();
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@ package com.rusefi;
|
|||
import com.rusefi.binaryprotocol.BinaryProtocol;
|
||||
import com.rusefi.core.EngineState;
|
||||
import com.rusefi.core.MessagesCentral;
|
||||
import com.rusefi.io.ConnectionWatchdog;
|
||||
import com.rusefi.io.LinkManager;
|
||||
import com.rusefi.io.tcp.BinaryProtocolServer;
|
||||
import com.rusefi.maintenance.VersionChecker;
|
||||
|
|
Loading…
Reference in New Issue