()
| 62 | * Use this for cleanup on exit. |
| 63 | */ |
| 64 | export function forceStopPreventSleep(): void { |
| 65 | refCount = 0 |
| 66 | stopRestartInterval() |
| 67 | killCaffeinate() |
| 68 | } |
| 69 | |
| 70 | function startRestartInterval(): void { |
| 71 | // Only run on macOS |
no test coverage detected