소스 검색

handle close

kingjcy 5 년 전
부모
커밋
62af5c8844
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      models/plugin/http2https.go
  2. 3 0
      models/plugin/https2http.go

+ 3 - 0
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
 }

+ 3 - 0
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
 }