aboutsummaryrefslogtreecommitdiff
path: root/mx_recv.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mx_recv.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/mx_recv.go b/mx_recv.go
index 221d8eb..8df6cfa 100644
--- a/mx_recv.go
+++ b/mx_recv.go
@@ -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")