diff --git a/lib/client/client.js b/lib/client/client.js index e03d5d2..daf9314 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -793,8 +793,8 @@ Client.prototype.connect = function connect () { // Establish basic socket connection function connectSocket (cb) { - self._nextServer = (self._nextServer + 1) % self.urls.length var server = self.urls[self._nextServer] + self._nextServer = (self._nextServer + 1) % self.urls.length cb = once(cb)