docs: clarify exhausted-queue refill is defensive-only in FM RandomLoop mode

This commit is contained in:
fattiger committed 2026-04-27 17:29:00 +08:00
1 parent 24da8cfc2e
commit 5d74979af3
1 file changed
+1 -1
+1 -1
View File
@@ -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();