MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / resetShutdownState

Function resetShutdownState

source code/utils/gracefulShutdown.ts:374–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373/** Reset shutdown state - only for use in tests */
374export function resetShutdownState(): void {
375 shutdownInProgress = false
376 resumeHintPrinted = false
377 if (failsafeTimer !== undefined) {
378 clearTimeout(failsafeTimer)
379 failsafeTimer = undefined
380 }
381 pendingShutdown = undefined
382}
383
384/**
385 * Returns the in-flight shutdown promise, if any. Only for use in tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected