From b3952ccb000fd1c716490efce2144545eb2dd456 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Thu, 21 Mar 2024 16:40:26 +0000 Subject: [PATCH] fix(node): Clear ANR timer on stop --- packages/node-experimental/src/integrations/anr/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/node-experimental/src/integrations/anr/index.ts b/packages/node-experimental/src/integrations/anr/index.ts index cd18556ef23d..8e28e0eb3535 100644 --- a/packages/node-experimental/src/integrations/anr/index.ts +++ b/packages/node-experimental/src/integrations/anr/index.ts @@ -175,5 +175,6 @@ async function _startWorker( return () => { // eslint-disable-next-line @typescript-eslint/no-floating-promises worker.terminate(); + clearInterval(timer); }; }