1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

client: Start at random point in round-robin

This commit is contained in:
Kane York 2015-10-26 12:26:47 -07:00
parent 85d261afb3
commit 44bcd7df05

View file

@ -4,7 +4,10 @@ var FFZ = window.FrankerFaceZ,
FFZ.prototype._ws_open = false;
FFZ.prototype._ws_delay = 0;
FFZ.prototype._ws_last_iframe = 0;
FFZ.prototype._ws_host_idx = 0;
FFZ.prototype._ws_host_idx = Math.floor(Math.random() * constants.WS_SERVERS.length) + 1;
if (constants.DEBUG) {
FFZ.prototype._ws_host_idx = 0;
}
FFZ.ws_commands = {};
FFZ.ws_on_close = [];