()
| 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() |
no test coverage detected