Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDominic Tarr <dominic.tarr@gmail.com>2012-07-24 18:40:58 +0400
committerisaacs <i@izs.me>2012-08-05 00:04:15 +0400
commitf4a4ef7a2da34ec9d155f82df0133b40382c53e9 (patch)
treea3f356c477f307fc778eec9e25c2931435c352e6 /lib
parentb48684c6f1958930741e2cf34a6a6d5cafa7f478 (diff)
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 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);