mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-06 16:07:17 +08:00
kill browser when internal exception is caught in core auto chat flow
This commit is contained in:
@@ -68,6 +68,7 @@ const main = async () => {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
closeBrowserWindow?.()
|
||||||
console.error(err)
|
console.error(err)
|
||||||
console.log(`[Run core main] An internal is caught, and browser will be restarted in ${rerunInterval}ms.`)
|
console.log(`[Run core main] An internal is caught, and browser will be restarted in ${rerunInterval}ms.`)
|
||||||
await sleep(rerunInterval)
|
await sleep(rerunInterval)
|
||||||
|
|||||||
Reference in New Issue
Block a user