Commit 74a2f2b0 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

conn: close fixes

parent c88a4b2c
......@@ -58,11 +58,7 @@ func newSecureConn(ctx context.Context, sk ic.PrivKey, insecure Conn) (Conn, err
}
func (c *secureConn) Close() error {
if err := c.secure.Close(); err != nil {
c.insecure.Close()
return err
}
return c.insecure.Close()
return c.secure.Close()
}
// ID is an identifier unique to this connection.
......
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