]> _ Git - fluidbook-html5.git/commitdiff
wip #7179 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Nov 2024 15:40:06 +0000 (16:40 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Nov 2024 15:40:06 +0000 (16:40 +0100)
js/libs/fluidbook/fluidbook.loader.js

index 61af6fce1f62c3ec5f694fc5ec4cd0375583a026..aa338a2d198afeb02ce3ec421c2fdcd978ee8bba 100644 (file)
@@ -39,7 +39,10 @@ FluidbookLoader.prototype = {
             $.ajax("https://toolbox.fluidbook.com/lbw.json").done(function (data) {
                 $this.loadbalancing = [];
                 $.each(data, function (i, server) {
-                    $.ajax('https://' + server.h + '/status.txt', {dataType: 'text'}).done(function (data) {
+                    $.ajax('https://' + server.h + '/status.txt', {
+                        dataType: 'text',
+                        timeout: 5000
+                    }).done(function (data) {
                         if (data == '1') {
                             for (let i = 0; i < server.w; i++) {
                                 $this.loadbalancing.push(server.h);