MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / cleanup

Function cleanup

scripts/dev-electron.ts:99–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98
99 const cleanup = () => {
100 if (restartTimer) {
101 clearTimeout(restartTimer)
102 restartTimer = null
103 }
104
105 for (const filePath of watchedFiles) {
106 unwatchFile(filePath)
107 }
108
109 stopElectronProcess()
110 }
111
112 process.once('SIGINT', () => {
113 cleanup()

Callers 1

mainFunction · 0.85

Calls 1

stopElectronProcessFunction · 0.85

Tested by

no test coverage detected