MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stopPreventSleep

Function stopPreventSleep

src/services/preventSleep.ts:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 * Call this when work completes.
48 */
49export function stopPreventSleep(): void {
50 if (refCount > 0) {
51 refCount--
52 }
53
54 if (refCount === 0) {
55 stopRestartInterval()
56 killCaffeinate()
57 }
58}
59
60/**
61 * Force stop preventing sleep, regardless of reference count.

Callers 1

REPLFunction · 0.85

Calls 2

stopRestartIntervalFunction · 0.85
killCaffeinateFunction · 0.85

Tested by

no test coverage detected