Fix InstanceMax typo

This commit is contained in:
Marcos Lilljedahl
2018-02-24 12:39:32 -03:00
parent b390cfa4e5
commit da24d3ad6b

View File

@@ -46,7 +46,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
return
}
if playground.InstancesMax > 0 && len(instances) > playground.MaxInstances {
if playground.MaxInstances > 0 && len(instances) > playground.MaxInstances {
log.Println(err)
rw.WriteHeader(http.StatusConflict)
return