Fix session close bug

This commit is contained in:
Ian Kent 2014-12-21 18:33:29 +00:00
parent 24fbb8146a
commit 9e8d990e72

View file

@ -97,6 +97,7 @@ func (c *Session) Read() bool {
c.Write(reply) c.Write(reply)
if reply.Status == 221 { if reply.Status == 221 {
io.Closer(c.conn).Close() io.Closer(c.conn).Close()
return false
} }
} }
} }