Explorar el Código

Merge pull request #51 from jitsi/external_connect_timeout

Adds timeout for the AJAX prebind request
dev1
damencho hace 9 años
padre
commit
6f4fef44e5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      connection_optimization/external_connect.js

+ 2
- 0
connection_optimization/external_connect.js Ver fichero

@@ -47,6 +47,8 @@ function createConnectionExternally(webserviceUrl, success_callback,
47 47
         }
48 48
     };
49 49
 
50
+    xhttp.timeout = 3000;
51
+
50 52
     xhttp.open("GET", webserviceUrl, true);
51 53
     xhttp.send();
52 54
 }

Loading…
Cancelar
Guardar