fix(sim): connect to the simulator on page load even with auto-reconnect off (1.65.2)

This commit is contained in:
larssand committed 2026-11-05 19:18:31 +01:00
1 parent e682a2056c
commit 62ec97c9e9
4 files changed
+11 -4

No files matched your search

+6
View File
@@ -8,6 +8,12 @@ The application version is maintained in `package.json` and displayed in the adm
No changes recorded yet.
## 1.65.2 - 2026-11-05
### Fixed
- With the decoder simulator on and auto-reconnect off, a page reload left the decoder disconnected (red on Race Day). The app now connects on load while the simulator is on.
## 1.65.1 - 2026-11-05
### Fixed
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "rc-racecore",
"version": "1.65.1",
"version": "1.65.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rc-racecore",
"version": "1.65.1",
"version": "1.65.2",
"hasInstallScript": true,
"dependencies": {
"better-sqlite3": "^12.11.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "rc-racecore",
"version": "1.65.1",
"version": "1.65.2",
"private": true,
"description": "RC RaceCore live timing and race control with AMMC ingest and SQLite persistence",
"engines": {
+2 -1
View File
@@ -5476,7 +5476,8 @@ async function init() {
setupLanguageControl();
updateHeaderState();
updateConnectionBadge();
if (state.settings.wsUrl && state.settings.autoReconnect && !state.decoder.connected) {
// The decoder simulator (Settings) is connected on load even with auto-reconnect off.
if (state.settings.wsUrl && (state.settings.autoReconnect || state.settings.simPreviousWsUrl) && !state.decoder.connected) {
connectDecoder();
}
});