MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / cleanup

Function cleanup

packages/cli/src/commands/preview.ts:947–953  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

945
946 // Kill ffmpeg first (sync, fast), then drain browsers (async, slower).
947 const cleanup = async () => {
948 const { closeThumbnailBrowser } = await import("../server/studioServer.js");
949 const { drainBrowserPool, killTrackedProcesses } = await import("@hyperframes/engine");
950 killTrackedProcesses();
951 await closeThumbnailBrowser().catch(() => {});
952 await drainBrowserPool().catch(() => {});
953 };
954
955 cleanup()
956 .catch(() => {})

Callers 1

shutdownFunction · 0.70

Calls 3

killTrackedProcessesFunction · 0.85
closeThumbnailBrowserFunction · 0.85
drainBrowserPoolFunction · 0.85

Tested by

no test coverage detected