소스 검색

[Email] client quit instead of close

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 7 년 전
부모
커밋
2a618302b9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      email/email.go

+ 1 - 1
email/email.go

@@ -129,7 +129,7 @@ func (e *Email) Send(m *Message) (err error) {
 	if err != nil {
 		return
 	}
-	defer c.Close()
+	defer c.Quit()
 
 	// Check if TLS is required
 	if ok, _ := c.Extension("STARTTLS"); ok {