rusEfi_Console exits (crashes?) after ~2mins of disconnected inactivity #3324

This commit is contained in:
rusefillc 2021-10-06 12:47:46 -04:00
parent 94aa0eb9d6
commit e8710c0abd
2 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class BinaryProtocolServer {
try {
start(linkManager, DEFAULT_PROXY_PORT, Listener.empty(), new Context());
} catch (IOException e) {
log.error("Error starting local proxy", e);
log.warn("Error starting local proxy: " + e);
}
}

View File

@ -85,6 +85,10 @@ public class MainFrame {
tabbedPane.settingsTab.showContent();
tabbedPane.logsManager.showContent();
tabbedPane.fuelTunePane.showContent();
/**
* todo: we are definitely not handling reconnect properly, no code to shut down old instance of server
* before launching new instance
*/
new BinaryProtocolServer().start(linkManager);
}
});