mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-10-26 16:00:28 +00:00
On Bun 1.4 the node adapter's reader cancel closes the stream before the request abort fires, so the abort listener's controller.close() threw ERR_INVALID_STATE as an uncaught exception and the process shut itself down whenever a dashboard tab disconnected. Both SSE routes now guard the close and clear their timers on cancel too. A shutdown forced by an uncaught exception or unhandled rejection now exits with status 1 instead of 0, so a unit with Restart=on-failure (the Proxmox community script) starts the service again.