Added check on repeated commands on scheduler

This commit is contained in:
Pax1601
2023-07-19 20:56:19 +02:00
parent cbb8920de7
commit 1d5f24dc1a
8 changed files with 50 additions and 48 deletions

View File

@@ -59,7 +59,7 @@ export function GET(callback: CallableFunction, uri: string, options?: { time?:
const result = JSON.parse(xmlHttp.responseText);
lastUpdateTimes[uri] = callback(result);
if (result.frameRate && result.load)
if (result.frameRate !== undefined && result.load !== undefined)
getServerStatusPanel().update(result.frameRate, result.load);
}
} else if (xmlHttp.status == 401) {