Don't emit further error/close events if the driver is already closing.
This commit is contained in:
@@ -304,6 +304,7 @@ var instance = {
|
||||
},
|
||||
|
||||
_fail: function(type, message) {
|
||||
if (this.readyState > 1) return;
|
||||
this.emit('error', new Error(message));
|
||||
this._shutdown(this.ERRORS[type], message);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user