mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-07-13 00:11:43 +08:00
14 lines
372 B
TypeScript
14 lines
372 B
TypeScript
import { sendToDaemon } from "../flow/OPEN_SETTING_WINDOW/connect-to-daemon"
|
|
|
|
export async function checkShouldExit () {
|
|
const shouldExitResponse = await sendToDaemon(
|
|
{
|
|
type: 'check-should-exit',
|
|
workerId: process.env.GEEKGEEKRUND_WORKER_ID,
|
|
},
|
|
{
|
|
needCallback: true
|
|
}
|
|
)
|
|
return shouldExitResponse?.shouldExit
|
|
} |