Skip to content

Commit 24181c7

Browse files
committed
fix anr getCurrentScope
1 parent f392633 commit 24181c7

File tree

1 file changed

+1
-1
lines changed
  • packages/node/src/integrations/anr

1 file changed

+1
-1
lines changed

packages/node/src/integrations/anr/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function _startWorker(client: NodeClient, _options: Partial<Options>): Pro
131131

132132
const timer = setInterval(() => {
133133
try {
134-
const currentSession = getCurrentHub().getScope().getSession();
134+
const currentSession = getCurrentScope().getSession();
135135
// We need to copy the session object and remove the toJSON method so it can be sent to the worker
136136
// serialized without making it a SerializedSession
137137
const session = currentSession ? { ...currentSession, toJSON: undefined } : undefined;

0 commit comments

Comments
 (0)