MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cleanup

Function cleanup

apps/cli/src/daemon.ts:245–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 new Promise<boolean>((resolve) => {
244 const server = createServer() as ProbeServer;
245 const cleanup = () => {
246 if (typeof server.removeAllListeners === "function") {
247 server.removeAllListeners();
248 }
249 };
250
251 server.once("error", () => {
252 cleanup();

Callers 2

isPortAvailableFunction · 0.70
ignoreCleanupFailureFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected