@@ -243,7 +243,7 @@ export class SessionTracker {
243243 this . browserSessions . set ( session . id , session ) ;
244244 // Also store in global browserSessions for compatibility
245245 browserSessions . set ( session . id , session ) ;
246-
246+
247247 this . setupCleanup ( session ) ;
248248
249249 return session ;
@@ -312,7 +312,7 @@ export class SessionTracker {
312312 this . browserSessions . set ( session . id , session ) ;
313313 // Also store in global browserSessions for compatibility
314314 browserSessions . set ( session . id , session ) ;
315-
315+
316316 this . setupCleanup ( session ) ;
317317
318318 return session ;
@@ -348,11 +348,11 @@ export class SessionTracker {
348348 // In Playwright, we should close the context which will automatically close its pages
349349 await session . page . context ( ) . close ( ) ;
350350 await session . browser . close ( ) ;
351-
351+
352352 // Remove from both maps
353353 this . browserSessions . delete ( sessionId ) ;
354354 browserSessions . delete ( sessionId ) ;
355-
355+
356356 // Update status
357357 this . updateSessionStatus ( sessionId , SessionStatus . COMPLETED , {
358358 closedExplicitly : true ,
@@ -361,7 +361,7 @@ export class SessionTracker {
361361 this . updateSessionStatus ( sessionId , SessionStatus . ERROR , {
362362 error : error instanceof Error ? error . message : String ( error ) ,
363363 } ) ;
364-
364+
365365 throw new BrowserError (
366366 'Failed to close session' ,
367367 BrowserErrorCode . SESSION_ERROR ,
@@ -392,7 +392,7 @@ export class SessionTracker {
392392 session . browser . on ( 'disconnected' , ( ) => {
393393 this . browserSessions . delete ( session . id ) ;
394394 browserSessions . delete ( session . id ) ;
395-
395+
396396 // Update session status
397397 this . updateSessionStatus ( session . id , SessionStatus . TERMINATED ) ;
398398 } ) ;
@@ -437,4 +437,4 @@ export class SessionTracker {
437437 } ) ;
438438 } ) ;
439439 }
440- }
440+ }
0 commit comments