MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / finish

Function finish

scripts/dev-safe.mjs:1068–1073  ·  view source on GitHub ↗
(busy)

Source from the content-addressed store, hash-verified

1066 const socket = new net.Socket();
1067 let settled = false;
1068 const finish = (busy) => {
1069 if (settled) return;
1070 settled = true;
1071 socket.destroy();
1072 resolve(busy);
1073 };
1074 socket.setTimeout(timeoutMs);
1075 socket.once("connect", () => finish(true));
1076 socket.once("timeout", () => finish(false));

Callers 3

isPortBusyFunction · 0.70
handleProxyErrorFunction · 0.70
proxyWebSocketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected