diff --git a/src/connection.js b/src/connection.js index 91725fd..64d4786 100644 --- a/src/connection.js +++ b/src/connection.js @@ -47,12 +47,7 @@ function Connection (conn) { this.setWritable(conn) } - this.destroy = () => { - if (conn.destroy) { - conn.destroy() - } - this.end() - } + // .destroy is implemented by Duplexify if (conn) { this.setInnerConn(conn)