Browse Source

fix: Don't emit unhandled error on multiplexer

Gregor MacLennan 2 years ago
parent
commit
72f2959daa
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      mux.js

+ 0
- 1
mux.js View File

@@ -136,7 +136,6 @@ Multiplexer.prototype.ready = function(cb) {
136 136
 Multiplexer.prototype._finalize = function(err) {
137 137
   if (err) {
138 138
     debug(this._id + ' [REPLICATION] destroyed due to', err)
139
-    this.emit('error', err)
140 139
     this.stream.destroy(err)
141 140
   } else {
142 141
     debug(this._id + ' [REPLICATION] finalized', err)