(changedPath)
| 72 | }, 100); |
| 73 | } |
| 74 | |
| 75 | function scheduleRestart(changedPath) { |
| 76 | if (shuttingDown || restartInProgress) { |
| 77 | return; |
| 78 | } |
| 79 | |
| 80 | if (restartTimer) { |
| 81 | clearTimeout(restartTimer); |
| 82 | } |
| 83 | |
| 84 | restartTimer = setTimeout(() => { |
| 85 | restartTimer = null; |
| 86 | syncWatchers(); |
| 87 | restartServer(changedPath); |
| 88 | }, 150); |
| 89 | } |
| 90 | |
| 91 | function addWatcher(dir) { |
no test coverage detected