Console just quits fix #3953

This commit is contained in:
rusefillc 2022-02-22 15:35:39 -05:00
parent 38d7f12b30
commit 3021efbc89
1 changed files with 17 additions and 14 deletions

View File

@ -82,21 +82,24 @@ public class MainFrame {
@Override
public void onConnectionEstablished() {
new ConnectionWatchdog(Timeouts.CONNECTION_RESTART_DELAY, () -> {
linkManager.execute(() -> {
log.info("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY);
linkManager.restart();
});
}).start();
SwingUtilities.invokeLater(() -> {
new ConnectionWatchdog(Timeouts.CONNECTION_RESTART_DELAY, () -> {
linkManager.execute(() -> {
log.info("ConnectionWatchdog.reconnectTimer restarting: " + Timeouts.CONNECTION_RESTART_DELAY);
linkManager.restart();
});
}).start();
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);
});
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);
}
});