Commit b339443e authored by Marten Seemann's avatar Marten Seemann
Browse files

fix close signature

parent c25d491a
...@@ -25,7 +25,7 @@ type conn struct { ...@@ -25,7 +25,7 @@ type conn struct {
var _ tpt.Conn = &conn{} var _ tpt.Conn = &conn{}
func (c *conn) Close() error { func (c *conn) Close() error {
return c.sess.Close(nil) return c.sess.Close()
} }
// IsClosed returns whether a connection is fully closed. // IsClosed returns whether a connection is fully closed.
......
...@@ -57,7 +57,7 @@ func (l *listener) Accept() (tpt.Conn, error) { ...@@ -57,7 +57,7 @@ func (l *listener) Accept() (tpt.Conn, error) {
} }
conn, err := l.setupConn(sess) conn, err := l.setupConn(sess)
if err != nil { if err != nil {
sess.Close(err) sess.CloseWithError(0, err)
continue continue
} }
return conn, nil return conn, nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment