MCPcopy
hub / github.com/coder/mux / cleanup

Method cleanup

src/node/services/coderService.ts:1070–1081  ·  view source on GitHub ↗
(cleanupOptions?: { keepSigkillTimer?: boolean })

Source from the content-addressed store, hash-verified

1068 };
1069
1070 const cleanup = (cleanupOptions?: { keepSigkillTimer?: boolean }) => {
1071 if (timeoutTimer) {
1072 clearTimeout(timeoutTimer);
1073 timeoutTimer = null;
1074 }
1075 if (!cleanupOptions?.keepSigkillTimer) {
1076 terminator.cleanup();
1077 }
1078 child.removeListener("close", onClose);
1079 child.removeListener("error", onError);
1080 options.signal?.removeEventListener("abort", onAbort);
1081 };
1082
1083 function onAbort() {
1084 terminator.terminate();

Callers

nothing calls this directly

Calls 2

removeEventListenerMethod · 0.80
cleanupMethod · 0.65

Tested by

no test coverage detected