Skip to content

Commit

Permalink
fix: Prevent EOF error on process-compose down
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Oct 26, 2024
1 parent a867fdb commit b0d388b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/pc_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
}

Expand Down

0 comments on commit b0d388b

Please sign in to comment.