Skip to content

Commit

Permalink
zlib: remove internal-ish unused event
Browse files Browse the repository at this point in the history
WIP, probably less desirable than the other proposed fix, which also
might be undesirable, but letting people comment just in case.

Still needs a test.

Refs: nodejs#1668
  • Loading branch information
Trott committed Mar 15, 2016
1 parent b801e39 commit 1a960d8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,8 @@ Zlib.prototype.close = function(callback) {
this._closed = true;

this._handle.close();

process.nextTick(emitCloseNT, this);
};

function emitCloseNT(self) {
self.emit('close');
}

Zlib.prototype._transform = function(chunk, encoding, cb) {
var flushFlag;
var ws = this._writableState;
Expand Down

0 comments on commit 1a960d8

Please sign in to comment.