Fix another thing

This commit is contained in:
Radon Rosborough 2022-12-27 18:55:20 -07:00
parent 56c3151069
commit 32f4730a9c
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ func handler(w http.ResponseWriter, r *http.Request) {
case <-exitChan2:
case <-ms.ClosedChan:
}
// Wait a bit to send any pending messages before closing the
// connection.
time.Sleep(1 * time.Second)
return
}