close connection without error

pull/1709/head v4.6.6
Darien Raymond 2018-11-27 10:56:07 +01:00
parent fe0f32e0f1
commit 90ab42b1cb
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 3 deletions

View File

@ -182,9 +182,8 @@ func (c *interConn) Write(b []byte) (int, error) {
} }
func (c *interConn) Close() error { func (c *interConn) Close() error {
c.stream.CancelRead(1) c.stream.CancelRead(0x00)
c.stream.CancelWrite(1) return c.stream.Close()
return nil
} }
func (c *interConn) LocalAddr() net.Addr { func (c *interConn) LocalAddr() net.Addr {