MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / cleanup

Function cleanup

apps/desktop/main/ipcMain.ts:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58export const cleanup = () => {
59 console.log('[IpcMain] Cleaning up resources...')
60 try {
61 void cleanupArchiveImportSources()
62 worker.closeWorker()
63 } catch (error) {
64 console.error('[IpcMain] Error during cleanup:', error)
65 }
66}
67
68/**
69 * 异步清理资源(用于更新安装前,确保 Worker 完全关闭)

Callers 2

mainAppEventsMethod · 0.90

Calls 2

errorMethod · 0.65

Tested by

no test coverage detected