MCPcopy Create free account
hub / github.com/anus-dev/ANUS / cleanup

Method cleanup

packages/core/src/tools/tool-registry.ts:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 };
79
80 const cleanup = () => {
81 child.stdout.removeListener('data', onStdout);
82 child.stderr.removeListener('data', onStderr);
83 child.removeListener('error', onError);
84 child.removeListener('close', onClose);
85 if (child.connected) {
86 child.disconnect();
87 }
88 };
89
90 child.stdout.on('data', onStdout);
91 child.stderr.on('data', onStderr);

Callers

nothing calls this directly

Calls 1

disconnectMethod · 0.80

Tested by

no test coverage detected