Re-enable “reconnect!”
because now we will take care of ensuring channel joins
This commit is contained in:
parent
8e68207943
commit
cbdb7d95f4
|
@ -98,7 +98,7 @@ Client.prototype.connect = function() {
|
||||||
self.emit("disconnect");
|
self.emit("disconnect");
|
||||||
self.emit("status", "Offline mode");
|
self.emit("status", "Offline mode");
|
||||||
|
|
||||||
/*// reconnect! // cant have them all reconnecting at same time
|
// reconnect!
|
||||||
if(self.connectionTime) {
|
if(self.connectionTime) {
|
||||||
self.connectionTime = undefined;
|
self.connectionTime = undefined;
|
||||||
self.connectionAttempts = 0;
|
self.connectionAttempts = 0;
|
||||||
|
@ -109,7 +109,7 @@ Client.prototype.connect = function() {
|
||||||
var idx = self.connectionAttempts;
|
var idx = self.connectionAttempts;
|
||||||
if(idx >= ms_lut.length) idx = ms_lut.length - 1;
|
if(idx >= ms_lut.length) idx = ms_lut.length - 1;
|
||||||
var ms = ms_lut[idx];
|
var ms = ms_lut[idx];
|
||||||
setTimeout(self.connect.bind(self), ms);*/
|
setTimeout(self.connect.bind(self), ms);
|
||||||
});
|
});
|
||||||
this.ws.addEventListener("error", function(error) {
|
this.ws.addEventListener("error", function(error) {
|
||||||
console.error(error.toString());
|
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});
|
this.noteBuffer.push({d: Date.now() - this.noteBufferTime, n: note, s: 1});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue