Skip to content

Commit 7d4b565

Browse files
Unref the waitForRun re-read interval
1 parent 52fd91d commit 7d4b565

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nodejs/src/session.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ export class CopilotSession {
545545
});
546546

547547
pollHandle = setInterval(() => void read(), 5_000);
548+
// The re-read is a safety net, not work the process owes anyone: an
549+
// outstanding wait must never keep Node alive on its own.
550+
pollHandle.unref?.();
548551
void read();
549552
});
550553
}

0 commit comments

Comments
 (0)