Skip to content

Commit 75e9943

Browse files
authored
Expected state should be "" not "running" (#101)
1 parent 949182d commit 75e9943

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type statusData struct {
6767
func statusIndex(w http.ResponseWriter, r *http.Request) {
6868
pingData := supervisorPing()
6969
data := statusData{
70-
SupervisorConnected:pingData.Connected,
70+
SupervisorConnected: pingData.Connected,
7171
SupervisorState: pingData.State,
7272
}
7373

@@ -87,7 +87,7 @@ func statusIndex(w http.ResponseWriter, r *http.Request) {
8787
}
8888

8989
// Set logs
90-
if data.SupervisorState != "running" || !data.SupervisorConnected {
90+
if data.SupervisorState != "" || !data.SupervisorConnected {
9191
var buf bytes.Buffer
9292
var re = regexp.MustCompile(`\[\d+m`)
9393
logWriter := bufio.NewWriter(&buf)

0 commit comments

Comments
 (0)