all repos — website @ 668c1b6a70782da5c25fe9529fe9fcc5ad47b880

My website

wait for graceful shutdown
Alan Pearce alan@alanpearce.eu
Sun, 08 Dec 2024 19:52:43 +0100
commit

668c1b6a70782da5c25fe9529fe9fcc5ad47b880

parent

c88f5f3a36b2f540ea54789c76b143167f52e3f4

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M cmd/server/main.gocmd/server/main.go
@@ -54,6 +54,6 @@ }() 
 	<-ctx.Done()
 	log.Debug("calling stop")
-	sv.Stop()
+	<-sv.Stop()
 	log.Debug("done")
 }