launcher: close browser on uncaughtException
This commit is contained in:
parent
fba2dbeaa4
commit
0560daf630
@ -197,6 +197,7 @@ export default async (CDP, proc, injectionType = 'browser', { dataPath, browserN
|
|||||||
process.on('SIGUSR1', interruptHandler);
|
process.on('SIGUSR1', interruptHandler);
|
||||||
process.on('SIGUSR2', interruptHandler);
|
process.on('SIGUSR2', interruptHandler);
|
||||||
process.on('SIGTERM', interruptHandler);
|
process.on('SIGTERM', interruptHandler);
|
||||||
|
process.on('uncaughtException', interruptHandler);
|
||||||
|
|
||||||
|
|
||||||
Window.idle = await IdleApi(Window.cdp, { browserType, closeHandlers });
|
Window.idle = await IdleApi(Window.cdp, { browserType, closeHandlers });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user