Explorar el Código

* Fix server connect not properly having 30 seconds before 'stoned' timeout

Bryan Drewery hace 16 años
padre
commit
fd02c4c2ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/mod/server.mod/servmsg.c

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -1365,7 +1365,7 @@ static void server_activity(int idx, char *msg, int len)
 
 
     // Setup timer for conecting
     // Setup timer for conecting
     waiting_for_awake = 1;
     waiting_for_awake = 1;
-    lastpingtime = now - (stoned_timeout + 30); //30 seconds to reach 001
+    lastpingtime = now - (stoned_timeout - 30); //30 seconds to reach 001
   } else if (server_online) // Only set once 001 has been received
   } else if (server_online) // Only set once 001 has been received
     waiting_for_awake = 0;
     waiting_for_awake = 0;