Comparing version 6.2.2 to 6.3.0
@@ -5,6 +5,7 @@ ## Collaborators | ||
<table><tbody><tr><th align="left">maxogden</th><td><a href="https://github.com/maxogden">GitHub/maxogden</a></td></tr> | ||
<table><tbody><tr><th align="left">substack</th><td><a href="https://github.com/substack">GitHub/substack</a></td></tr> | ||
<tr><th align="left">maxogden</th><td><a href="https://github.com/maxogden">GitHub/maxogden</a></td></tr> | ||
<tr><th align="left">mafintosh</th><td><a href="https://github.com/mafintosh">GitHub/mafintosh</a></td></tr> | ||
<tr><th align="left">diasdavid</th><td><a href="https://github.com/diasdavid">GitHub/diasdavid</a></td></tr> | ||
<tr><th align="left">1N50MN14</th><td><a href="https://github.com/1N50MN14">GitHub/1N50MN14</a></td></tr> | ||
<tr><th align="left">substack</th><td><a href="https://github.com/substack">GitHub/substack</a></td></tr> | ||
<tr><th align="left">mafintosh</th><td><a href="https://github.com/mafintosh">GitHub/mafintosh</a></td></tr> | ||
</tbody></table> |
12
index.js
@@ -141,2 +141,3 @@ var stream = require('readable-stream') | ||
this._ondrain = [] | ||
this._finished = false | ||
@@ -264,3 +265,3 @@ this.on('finish', this._clear) | ||
if (this._type === 0) { // open | ||
if (this.destroyed) return | ||
if (this.destroyed || this._finished) return | ||
@@ -314,2 +315,4 @@ var name = data.toString() || this._channel.toString() | ||
Multiplex.prototype._write = function (data, enc, cb) { | ||
if (this._finished) return cb() | ||
var offset = 0 | ||
@@ -332,2 +335,5 @@ | ||
Multiplex.prototype._clear = function () { | ||
if (this._finished) return | ||
this._finished = true | ||
var list = this._local.concat(this._remote) | ||
@@ -345,2 +351,6 @@ | ||
Multiplex.prototype.finalize = function () { | ||
this._clear() | ||
} | ||
Multiplex.prototype.destroy = function (err) { | ||
@@ -347,0 +357,0 @@ if (this.destroyed) return |
{ | ||
"name": "multiplex", | ||
"version": "6.2.2", | ||
"version": "6.3.0", | ||
"description": "A binary stream multiplexer. Stream multiple streams of binary data over a single binary stream.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21675
516