From b0d388bd9a46f34fe7d0aeda4f55f48d576c1682 Mon Sep 17 00:00:00 2001 From: Berger Eugene Date: Sat, 26 Oct 2024 17:01:07 +0300 Subject: [PATCH] fix: Prevent EOF error on process-compose down --- src/api/pc_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/pc_api.go b/src/api/pc_api.go index bc20ae1..cc72f67 100644 --- a/src/api/pc_api.go +++ b/src/api/pc_api.go @@ -315,7 +315,9 @@ func (api *PcApi) GetProcessPorts(c *gin.Context) { // @Success 200 {object} map[string]string "Stopped Server" // @Router /project/stop [post] func (api *PcApi) ShutDownProject(c *gin.Context) { - _ = api.project.ShutDownProject() + go func() { + _ = api.project.ShutDownProject() + }() c.JSON(http.StatusOK, gin.H{"status": "stopped"}) }