summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDominic Tarr <dominic.tarr@gmail.com>2012-07-25 02:40:58 +1200
committerisaacs <i@izs.me>2012-08-04 13:04:15 -0700
commitf4a4ef7a2da34ec9d155f82df0133b40382c53e9 (patch)
treea3f356c477f307fc778eec9e25c2931435c352e6 /lib
parentb48684c6f1958930741e2cf34a6a6d5cafa7f478 (diff)
downloadnode-f4a4ef7a2da34ec9d155f82df0133b40382c53e9.tar.gz
zlib: Emit 'close' on destroy().
Diffstat (limited to 'lib')
-rw-r--r--lib/zlib.js1
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);