MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / stopLauncher

Function stopLauncher

desktop/main.mjs:272–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270}
271
272async function stopLauncher() {
273 if (!launcherChild || launcherChild.exitCode !== null) {
274 return
275 }
276
277 launcherChild.kill('SIGTERM')
278 await new Promise(resolve => {
279 launcherChild.once('exit', resolve)
280 setTimeout(resolve, 3000)
281 })
282 launcherChild = null
283 launcherReadyPromise = null
284}
285
286async function ensureLauncherReady() {
287 if (launcherReadyPromise) {

Callers 2

restartLauncherFunction · 0.85
main.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected