fix: auto-boss no longer halts on client/server save race condition
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m3s
CI / Lint, Build & Test (pull_request) Successful in 1m9s

Closes #86
This commit is contained in:
2026-03-20 09:22:56 -07:00
committed by Naomi Carrigan
parent 2236d1dc9f
commit 51dd9556b5
+5 -3
View File
@@ -1316,11 +1316,13 @@ export const GameProvider = ({
/* /*
* "Boss is not currently available" is an expected race condition * "Boss is not currently available" is an expected race condition
* in the tick loop — suppress telemetry for this case only * when the client is ahead of the server save — silently skip and
* let the next tick retry rather than halting automation.
*/ */
if (message !== "Boss is not currently available") { if (message === "Boss is not currently available") {
logError("auto_boss", error_); return;
} }
logError("auto_boss", error_);
setAutoBossError(message); setAutoBossError(message);
setState((previous) => { setState((previous) => {
if (previous === null) { if (previous === null) {