Commit 5a4db628 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Call context cancel function after shutdown.

Keeps go vet from complaining.
parent 2347417f
...@@ -473,6 +473,7 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr ...@@ -473,6 +473,7 @@ func serveGroupRecordings(w http.ResponseWriter, r *http.Request, f *os.File, gr
} }
func shutdown() { func shutdown() {
ctx, _ := context.WithTimeout(context.Background(), 2*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
server.Shutdown(ctx) server.Shutdown(ctx)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment