launcher: explain close process
This commit is contained in:
parent
06fa10b09c
commit
fc15be85a0
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user