This commit is contained in:
rusefillc 2021-11-23 17:16:22 -05:00
parent 6d63e0b6de
commit 81b275567f
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package com.rusefi.io;
/**
* @author Andrey Belomutskiy
* 3/1/2017
* @see ConnectionStatusValue
*/
public interface ConnectionStateListener extends ConnectionFailedListener {
ConnectionStateListener VOID = new AbstractConnectionStateListener();

View File

@ -28,7 +28,7 @@ public class ConnectionStatusLogic {
}
public static ConnectionStatusLogic INSTANCE = new ConnectionStatusLogic();
private List<Listener> listeners = new CopyOnWriteArrayList<>();
private final List<Listener> listeners = new CopyOnWriteArrayList<>();
private ConnectionStatusLogic() {
SensorCentral.getInstance().addListener(Sensor.TIME_SECONDS, value -> markConnected());