mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-18 09:05:31 -04:00
fix: avoid suture.Supervisor being shutdown early
Previously the Supervisor was shutdonw as soon as the main context was canceled. Which cause the managed services to fail during shutdown (in "trapShutdownCtx()") as the Supervisor was gone already. We now pass a separate Context to Supervisor.ServeBackground() to avoid this. Fixes: #2282
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f