Skip to content

Commit f529f54

Browse files
committed
More PR updates.
1 parent f3f0bf7 commit f529f54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/connection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ internals.Connection.prototype._init = function () {
138138

139139
internals.Connection.prototype._start = function (callback) {
140140

141+
var self = this;
142+
141143
if (this._started) {
142144
return process.nextTick(callback);
143145
}
@@ -149,12 +151,12 @@ internals.Connection.prototype._start = function (callback) {
149151
return process.nextTick(callback);
150152
}
151153

152-
var self = this;
153154
var onError = function (err) {
154155

155156
self._started = false;
156157
return callback(err);
157158
};
159+
158160
this.listener.once('error', onError);
159161

160162
var finalize = function () {

0 commit comments

Comments
 (0)