fix: VM 시간 변경 후 턴 lease를 안전하게 자동 복구
This commit is contained in:
1 parent
7dc1670935
commit
4fb1343943
11 files changed
+224
-45
No files matched your search
@@ -240,7 +240,8 @@ export class TurnDaemonLifecycle {
|
||||
|
||||
const wallDeadline = await this.stateStore.projectGameDeadline?.(nextRunTime);
|
||||
const command = await this.controlQueue.waitFor(
|
||||
Math.max(0, wallDeadline ? wallDeadline.getTime() - nowMs : nextTurnMs - gameNowMs)
|
||||
// 벽시계가 뒤로 이동해도 다음 턴까지 장시간 잠들지 않고 lease/gate를 다시 확인한다.
|
||||
Math.min(1000, Math.max(0, wallDeadline ? wallDeadline.getTime() - nowMs : nextTurnMs - gameNowMs))
|
||||
);
|
||||
if (command) {
|
||||
await this.handleCommand(command);
|
||||
|
||||
Reference in new issue
Block a user