mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
stopVstSidecar() only checked the `running` variable, which is set after the sidecar's ready handshake. Calling it while a spawn was still in flight (e.g. Ctrl-C during the sidecar's boot window) was a no-op, orphaning the child process. Track the in-flight child in a new `spawningChild` variable from spawn() time so stopVstSidecar() can kill it before the handshake arrives.