Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ export class SessionMonitor {
stallDeleteTypes(sessionId: string, types: string[]): void {
this.stallDetector.stallDeleteTypes(sessionId, types);
}
/** @internal Backward compat: forward to deadDetector for test access. */
async checkDeadSessions(): Promise<void> {
return this.deadDetector.checkDeadSessions();
}

private lastStallCheck = 0;
private lastDeadCheck = 0;
Expand Down Expand Up @@ -338,7 +342,7 @@ export class SessionMonitor {

if (now - this.lastDeadCheck >= this.config.deadCheckIntervalMs) {
this.lastDeadCheck = now;
await this.deadDetector.checkDeadSessions();
await this.checkDeadSessions();
}
}

Expand Down