From 62af5c8844f2436d6366fbf6192620abc52e99be Mon Sep 17 00:00:00 2001 From: kingjcy Date: Fri, 22 Nov 2019 15:18:20 +0800 Subject: [PATCH] handle close --- models/plugin/http2https.go | 3 +++ models/plugin/https2http.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/models/plugin/http2https.go b/models/plugin/http2https.go index 04871c97..6f5965e6 100644 --- a/models/plugin/http2https.go +++ b/models/plugin/http2https.go @@ -105,5 +105,8 @@ func (p *HTTP2HTTPSPlugin) Name() string { } func (p *HTTP2HTTPSPlugin) Close() error { + if err := p.s.Close();err != nil { + return err + } return nil } diff --git a/models/plugin/https2http.go b/models/plugin/https2http.go index 65540356..af5b6af9 100644 --- a/models/plugin/https2http.go +++ b/models/plugin/https2http.go @@ -126,5 +126,8 @@ func (p *HTTPS2HTTPPlugin) Name() string { } func (p *HTTPS2HTTPPlugin) Close() error { + if err := p.s.Close();err != nil { + return err + } return nil }