File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,12 @@ abstract class ChromiumBasedInterceptor implements Interceptor {
7474 await hideWarningServer . stop ( ) ;
7575
7676 this . activeBrowsers [ proxyPort ] = browser ;
77- browser . process . once ( 'close' , ( ) => {
77+ browser . process . once ( 'close' , async ( ) => {
7878 delete this . activeBrowsers [ proxyPort ] ;
7979
8080 // Opera has a launch proc that exits immediately in Windows, so we can't clear the profile there.
8181 if ( process . platform === 'win32' && this . variantName === 'opera' ) return ;
82+ await delay ( 1000 ) ; // No hurry, make sure the browser & related processes have all cleaned up
8283
8384 if ( Object . keys ( this . activeBrowsers ) . length === 0 && browserDetails && _ . isString ( browserDetails . profile ) ) {
8485 // If we were the last browser, and we have a profile path, and it's in our config
You can’t perform that action at this time.
0 commit comments