Browse Source

Atualização sleep()

Loop infinito
Gustavo Grancieiro 3 years ago
parent
commit
e32bde007e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ihanoi/js/integration-functions.js

+ 1 - 1
ihanoi/js/integration-functions.js

@@ -232,7 +232,7 @@ getiLMContent();
 
 
 function sleep (milliseconds) {
 function sleep (milliseconds) {
   var startSleep = new Date().getTime();
   var startSleep = new Date().getTime();
-  for (var i = 0; i < 1e7; i++) {
+  for (; ;) {
     if ((new Date().getTime() - startSleep) > milliseconds) {
     if ((new Date().getTime() - startSleep) > milliseconds) {
       break;
       break;
       }
       }