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