diff options
author | Dominic Tarr <dominic.tarr@gmail.com> | 2012-07-24 18:40:58 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-05 00:04:15 +0400 |
commit | f4a4ef7a2da34ec9d155f82df0133b40382c53e9 (patch) | |
tree | a3f356c477f307fc778eec9e25c2931435c352e6 /lib | |
parent | b48684c6f1958930741e2cf34a6a6d5cafa7f478 (diff) |
zlib: Emit 'close' on destroy().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zlib.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zlib.js b/lib/zlib.js index f05f6d1399d..7837f3f7bcf 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -455,6 +455,7 @@ Zlib.prototype.destroy = function() { this.readable = false; this.writable = false; this._ended = true; + this.emit('close'); }; util.inherits(Deflate, Zlib); |