diff options
author | Dominic Tarr <dominic.tarr@gmail.com> | 2012-07-25 02:40:58 +1200 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-04 13:04:15 -0700 |
commit | f4a4ef7a2da34ec9d155f82df0133b40382c53e9 (patch) | |
tree | a3f356c477f307fc778eec9e25c2931435c352e6 /lib | |
parent | b48684c6f1958930741e2cf34a6a6d5cafa7f478 (diff) | |
download | node-f4a4ef7a2da34ec9d155f82df0133b40382c53e9.tar.gz |
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 f05f6d139..7837f3f7b 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); |