Re-enable “reconnect!”

because now we will take care of ensuring channel joins
This commit is contained in:
Lamp 2018-09-03 23:25:54 -07:00 committed by GitHub
parent 8e68207943
commit cbdb7d95f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ Client.prototype.connect = function() {
self.emit("disconnect");
self.emit("status", "Offline mode");
/*// reconnect! // cant have them all reconnecting at same time
// reconnect!
if(self.connectionTime) {
self.connectionTime = undefined;
self.connectionAttempts = 0;
@ -109,7 +109,7 @@ Client.prototype.connect = function() {
var idx = self.connectionAttempts;
if(idx >= ms_lut.length) idx = ms_lut.length - 1;
var ms = ms_lut[idx];
setTimeout(self.connect.bind(self), ms);*/
setTimeout(self.connect.bind(self), ms);
});
this.ws.addEventListener("error", function(error) {
console.error(error.toString());
@ -329,4 +329,4 @@ Client.prototype.stopNote = function(note) {
this.noteBuffer.push({d: Date.now() - this.noteBufferTime, n: note, s: 1});
}
}
};
};