MCPcopy Index your code
hub / github.com/coder/code-server / startIdleShutdownTimer

Function startIdleShutdownTimer

src/node/main.ts:174–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172
173 let idleShutdownTimer: NodeJS.Timeout | undefined
174 const startIdleShutdownTimer = () => {
175 idleShutdownTimer = setTimeout(() => {
176 logger.warn(`Idle timeout of ${args["idle-timeout-seconds"]} seconds exceeded`)
177 wrapper.exit(0)
178 }, args["idle-timeout-seconds"]! * 1000)
179 }
180
181 startIdleShutdownTimer()
182

Callers 1

runCodeServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected