()
| 319 | let viteChild: ViteChild | null = null; |
| 320 | |
| 321 | const disposeOwnedResources = async (): Promise<void> => { |
| 322 | setOAuthCompletionListener(null); |
| 323 | if (ownsHandlers) { |
| 324 | await disposeServerHandlers(); |
| 325 | } else { |
| 326 | await closeProvidedHandlers(handlers); |
| 327 | } |
| 328 | // Final analytics flush; the layer finalizer drains the buffer. |
| 329 | await disposeAnalytics(); |
| 330 | if (viteChild) await viteChild.stop(); |
| 331 | }; |
| 332 | |
| 333 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: after handlers boot, failed static/dev/Bun startup must release DB ownership before surfacing the startup error |
| 334 | try { |
no test coverage detected