flush before close

This commit is contained in:
Josh Baker 2017-04-22 04:17:26 -07:00
parent 0be017aab7
commit b67f37f0b1
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ type conn struct {
}
func (c *conn) Close() error {
c.wr.Flush()
c.closed = true
return c.conn.Close()
}