DESKTOP-9JTA2JJ\HP 5 lat temu
rodzic
commit
8c812546c7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/application/libraries/Mqtt.php

+ 1 - 1
api/application/libraries/Mqtt.php

@@ -31,7 +31,7 @@ class Mqtt {
 
 
     function connect_auto($clean = true, $will = NULL, $username = NULL, $password = NULL){
     function connect_auto($clean = true, $will = NULL, $username = NULL, $password = NULL){
         while($this->connect($clean, $will, $username, $password)==false){
         while($this->connect($clean, $will, $username, $password)==false){
-            sleep(10);
+            sleep(1);
         }
         }
         return true;
         return true;
     }
     }