mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Call context cancel function after shutdown.
Keeps go vet from complaining.
This commit is contained in:
parent
2347417f83
commit
5a4db62873
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue