fix .destroy

This commit is contained in:
David Dias 2016-06-23 10:33:40 +01:00
parent 1e4182691a
commit a6da1000f5

View File

@ -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)