From 5d74979af3e0b11e47484b63851a974dd2ba4456 Mon Sep 17 00:00:00 2001 From: fattiger <1106842466@qq.com> Date: Mon, 27 Apr 2026 17:29:00 +0800 Subject: [PATCH] docs: clarify exhausted-queue refill is defensive-only in FM RandomLoop mode --- src/bot/instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/instance.ts b/src/bot/instance.ts index 9c231fc..cd7ce24 100755 --- a/src/bot/instance.ts +++ b/src/bot/instance.ts @@ -690,7 +690,7 @@ export class BotInstance extends EventEmitter { this.refillFm().catch(err => this.logger.error({ err }, "Proactive FM refill failed")); } } else { - // Queue exhausted — in FM mode, refill instead of stopping + // Defensive: only reached if play mode is changed away from RandomLoop during FM if (this.isFmMode) { await this.refillFm(); const refillNext = this.queue.next();