From: qydysky Date: Wed, 19 Mar 2025 12:04:06 +0000 (+0800) Subject: 1 X-Git-Tag: v0.1.20250319120507 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=56acea101653ee29b091b20f62520fa12924265c;p=front%2F.git 1 --- diff --git a/config.go b/config.go index 99e51dc..52ce515 100755 --- a/config.go +++ b/config.go @@ -142,6 +142,7 @@ func (t *Config) startServer(ctx context.Context, logger Logger, conf *http.Serv f.Delete() } f.Write([]byte(strconv.Itoa(int(syncWeb.FD))), false) + defer f.Delete() shutdown = syncWeb.Shutdown return } else {