From 9874cd3df3d30dfea4aa8560c7c6e00a9ddc3c09 Mon Sep 17 00:00:00 2001 From: microrain Date: Mon, 22 Apr 2024 05:21:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E5=8C=96web=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=87=87=E7=94=A8=E7=8B=AC=E7=AB=8B=E5=8D=8F=E7=A8=8B=E8=BF=90?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/cmd/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cmd/server.go b/internal/cmd/server.go index 9187da8..e23785b 100644 --- a/internal/cmd/server.go +++ b/internal/cmd/server.go @@ -98,7 +98,10 @@ func RunServer(ctx context.Context, stopSignal chan os.Signal) { s.EnableHTTPS(certFile, keyFile) } - s.Run() + go s.Run() + select { + case <-ctx.Done(): + } stopSignal <- syscall.SIGQUIT }() return