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"
"os"
"os/signal"
"strings"
"syscall"
"time"
@@ -208,7 +209,7 @@ func main() {
break
}
str := string(buf[:n])
if str == "exit" {
if strings.HasPrefix(str, "exit") {
break
}
log.Println("Echoing", str)