Fix the race condition where the race is actually happening
This commit is contained in:
parent
0fc1f300f8
commit
b9fb922e91
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user