File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/node/src/integrations/anr Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ async function _startWorker(
186
186
187
187
const timer = setInterval ( ( ) => {
188
188
try {
189
- const currentSession = getCurrentScope ( ) . getSession ( ) ;
189
+ const currentSession = getIsolationScope ( ) . getSession ( ) ;
190
190
// We need to copy the session object and remove the toJSON method so it can be sent to the worker
191
191
// serialized without making it a SerializedSession
192
192
const session = currentSession ? { ...currentSession , toJSON : undefined } : undefined ;
@@ -202,7 +202,7 @@ async function _startWorker(
202
202
worker . on ( 'message' , ( msg : string ) => {
203
203
if ( msg === 'session-ended' ) {
204
204
log ( 'ANR event sent from ANR worker. Clearing session in this thread.' ) ;
205
- getCurrentScope ( ) . setSession ( undefined ) ;
205
+ getIsolationScope ( ) . setSession ( undefined ) ;
206
206
}
207
207
} ) ;
208
208
You can’t perform that action at this time.
0 commit comments