diff options
Diffstat (limited to 'mx_recv.go')
-rw-r--r-- | mx_recv.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -198,6 +198,10 @@ func (session *mx_recv_session) handle() error { case "QUIT": _, _ = session.buf_conn.WriteString("221 2.0.0 Bye\r\n") _ = session.buf_conn.Flush() + if session.tls_conn != nil { + session.tls_conn.Close() + } + session.net_conn.Close() return nil case "NOOP": _, _ = session.buf_conn.WriteString("250 2.0.0 Ok\r\n") |