Fix gun conn setup

This commit is contained in:
世界 2023-12-08 21:10:13 +08:00
parent 83581b7c1a
commit 2eecdc38a4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -49,7 +49,9 @@ func newLateGunConn(writer io.Writer) *GunConn {
}
func (c *GunConn) setup(reader io.Reader, err error) {
if reader != nil {
c.reader = std_bufio.NewReader(reader)
}
c.err = err
close(c.create)
}