launcher: explain close process

This commit is contained in:
Oj 2023-02-07 13:28:16 +00:00
parent 06fa10b09c
commit fc15be85a0

View File

@ -198,9 +198,9 @@ export default async (CDP, proc, injectionType = 'browser', { dataPath, browserN
for (const handler of closeHandlers) handler(); // extra api handlers which need to be closed for (const handler of closeHandlers) handler(); // extra api handlers which need to be closed
CDP.sendMessage('Browser.close'); CDP.sendMessage('Browser.close'); // request graceful close to browser (incase process is not attached)
CDP.close(); CDP.close(); // close CDP connection
proc.kill(); proc.kill(); // kill browser process
return Window.closed = true; return Window.closed = true;
}, },