Two seconds is plenty of time.

This commit is contained in:
Martyn 2020-09-26 13:15:19 +02:00
parent f431336f8d
commit 5725eaf8a7
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func QuitHandler(w http.ResponseWriter, r *http.Request) {
}
fmt.Fprint(w, "BYE!\n")
go func() {
time.Sleep(10 * time.Second)
time.Sleep(2 * time.Second)
os.Exit(0)
}()
}