MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / stopBridge

Function stopBridge

src/utils/computerUse/win32/bridgeClient.ts:183–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 * Kill the bridge process.
182 */
183export function stopBridge(): void {
184 if (bridgeProc) {
185 try {
186 const stdin = bridgeProc.stdin
187 if (stdin) {
188 const writable = stdin as unknown as Writable
189 if (typeof writable.end === 'function') {
190 writable.end()
191 }
192 }
193 bridgeProc.kill()
194 } catch {}
195 bridgeProc = null
196 }
197 pendingRequests.clear()
198 outputBuffer = ''
199}
200
201// NOTE: No process exit handlers here — the platform-level win32.ts
202// already registers exit/SIGINT/SIGTERM handlers that call cleanupAll(),

Callers

nothing calls this directly

Calls 3

endMethod · 0.45
killMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected