Skip to content

Commit 1f7cf36

Browse files
committed
Keep decoder settlement timers alive
1 parent 0988f12 commit 1f7cf36

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎agents/adapters/supervisor.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ export function startProfileInvocation(profile: ContainerProfile, options: Super
365365
stop('timeout');
366366
reject(new CaptureDeadlineError('Adapter output capture exceeded the invocation deadline.'));
367367
}, budget);
368-
decodeTimer.unref();
369368
});
370369
let decoded: DecodedOutput;
371370
try { decoded = await Promise.race([operation, timeout, aborted]); }
@@ -374,7 +373,6 @@ export function startProfileInvocation(profile: ContainerProfile, options: Super
374373
let graceTimer: ReturnType<typeof setTimeout> | undefined;
375374
const grace = new Promise<void>(resolve => {
376375
graceTimer = setTimeout(resolve, CAPTURE_ABORT_GRACE_MS);
377-
graceTimer.unref();
378376
});
379377
await Promise.race([operation.then(() => undefined, () => undefined), grace]);
380378
if (graceTimer) clearTimeout(graceTimer);

0 commit comments

Comments
 (0)