This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-05-19 10:16:00 -03:00
parent a223a08ab7
commit a703f22997

View File

@@ -12,6 +12,12 @@ func Home(w http.ResponseWriter, r *http.Request) {
sessionId := vars["sessionId"]
s := services.GetSession(sessionId)
if s == nil {
// Session doesn't exist (can happen if closing the sessions an reloading the page, or similar).
w.WriteHeader(http.StatusNotFound)
return
}
if s.Stack != "" {
go s.DeployStack()
}