We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be29383 commit 6a25629Copy full SHA for 6a25629
main.go
@@ -84,12 +84,13 @@ func main() {
84
}
85
for {
86
time.Sleep(interval / 3)
87
- _, err := http.Get("http://127.0.0.1:" + srvConfig.Port)
+ res, err := http.Get("http://127.0.0.1:" + srvConfig.Port)
88
if err == nil {
89
daemon.SdNotify(false, "WATCHDOG=1")
90
} else {
91
log.Printf("RPi Controller watchdog error: %v", err)
92
93
+ res.Body.Close()
94
95
}()
96
return shutdown(quit, srv)
0 commit comments