From a6da1000f5e9221410d1d0506dd5e0ed83b0f007 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 23 Jun 2016 10:33:40 +0100 Subject: [PATCH] fix .destroy --- src/connection.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)