1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 01:05:15 +03:00

More coderabbit ...

This commit is contained in:
Mark Haslinghuis 2025-06-12 23:15:49 +02:00
parent 6a06ca1ed1
commit b218963680
2 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@ export class MSPQueueMonitor {
* Check for alert conditions
*/
_checkAlerts() {
const queueSize = this.msp.callbacks.length;
const queueSize = this.msp.callbacks?.length ?? 0;
// Queue full alert
const wasQueueFull = this.alerts.queueFull;
@ -607,7 +607,7 @@ export class MSPQueueMonitor {
}
// Clear instrumentation flag
delete this.msp._mspQueueMonitorInstrumented;
this.msp._mspQueueMonitorInstrumented = undefined;
this.listeners = [];