We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3f0bf7 commit f529f54Copy full SHA for f529f54
lib/connection.js
@@ -138,6 +138,8 @@ internals.Connection.prototype._init = function () {
138
139
internals.Connection.prototype._start = function (callback) {
140
141
+ var self = this;
142
+
143
if (this._started) {
144
return process.nextTick(callback);
145
}
@@ -149,12 +151,12 @@ internals.Connection.prototype._start = function (callback) {
149
151
150
152
153
- var self = this;
154
var onError = function (err) {
155
156
self._started = false;
157
return callback(err);
158
};
159
160
this.listener.once('error', onError);
161
162
var finalize = function () {
0 commit comments