오류 정지 중 가입 턴을 고정하고 화면 이동 실패 복구 지원

This commit is contained in:
2026-09-12 02:02:31 +00:00
parent 5041fc365e
commit 21d10d5dfc
15 changed files with 448 additions and 26 deletions
@@ -142,11 +142,12 @@ export class TurnDaemonLifecycle {
private async runLoop(): Promise<void> {
await this.initializeState();
while (!this.stopping) {
// 정지 시계 동기화보다 먼저 claim하면 가입에 벽시계 경과가 섞인다.
const gatePaused = (await this.pauseGate?.()) ?? false;
await this.drainCommands();
if (this.stopping) {
break;
}
const gatePaused = (await this.pauseGate?.()) ?? false;
if (this.errorPaused && !gatePaused) {
this.errorPaused = false;
this.status.lastError = undefined;