Explorar o código

[Email] client quit instead of close

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana %!s(int64=7) %!d(string=hai) anos
pai
achega
2a618302b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {