close on exit
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Successful in 30s
Build and Publish / BuildAndDeploy (push) Has been cancelled

This commit is contained in:
matst80
2024-11-21 20:34:20 +01:00
parent 85e4a55418
commit d8f364c329

View File

@@ -8,6 +8,7 @@ import (
"net/http/pprof" "net/http/pprof"
"os" "os"
"os/signal" "os/signal"
"strings"
"syscall" "syscall"
"time" "time"
@@ -208,7 +209,7 @@ func main() {
break break
} }
str := string(buf[:n]) str := string(buf[:n])
if str == "exit" { if strings.HasPrefix(str, "exit") {
break break
} }
log.Println("Echoing", str) log.Println("Echoing", str)