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

Function cleanup

src/services/mcp/auth.ts:218–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217 // Cleanup to prevent event listener leaks after fetch completes
218 const cleanup = () => {
219 init.signal?.removeEventListener('abort', abort)
220 timeoutSignal.removeEventListener('abort', abort)
221 }
222
223 if (init.signal.aborted) {
224 controller.abort()

Callers 2

createAuthFetchFunction · 0.70
performMCPOAuthFlowFunction · 0.70

Calls 3

logMCPDebugFunction · 0.85
onMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected