after a logout command, actually close the connection

reported by inigoserna in issue #30, thanks!
This commit is contained in:
Mechiel Lukkien 2023-05-31 10:31:25 +02:00
parent 5b8efcc1d9
commit dd0cede4f9
No known key found for this signature in database

View file

@ -730,6 +730,9 @@ func (c *conn) command() {
if x == nil || x == cleanClose { if x == nil || x == cleanClose {
c.log.Debug("imap command done", logFields...) c.log.Debug("imap command done", logFields...)
result = "ok" result = "ok"
if x == cleanClose {
panic(x)
}
return return
} }
err, ok := x.(error) err, ok := x.(error)