Fix the race condition where the race is actually happening

This commit is contained in:
Dane Everitt 2020-08-18 21:46:17 -07:00
parent 0fc1f300f8
commit b9fb922e91
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ import (
func getServer(c *gin.Context) {
s := GetServer(c.Param("server"))
c.JSON(http.StatusOK, s.Proc())
p := *s.Proc()
c.JSON(http.StatusOK, p)
}
// Returns the logs for a given server instance.