()
| 347 | let viteChild: ViteChild | null = null; |
| 348 | |
| 349 | const disposeOwnedResources = async (): Promise<void> => { |
| 350 | setOAuthCompletionListener(null); |
| 351 | if (ownsHandlers) { |
| 352 | await disposeServerHandlers(); |
| 353 | } else { |
| 354 | await closeProvidedHandlers(handlers); |
| 355 | } |
| 356 | // Final analytics flush; the layer finalizer drains the buffer. |
| 357 | await disposeAnalytics(); |
| 358 | if (viteChild) await viteChild.stop(); |
| 359 | }; |
| 360 | |
| 361 | // 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 |
| 362 | try { |
no test coverage detected