Explorar o código

* Increase child leaf bot reconnect time to 5 seconds - hubs/localhubs still go on a 30 second cycle

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
e3b75ae10b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -521,7 +521,7 @@ static void core_secondly()
       do_fork();
   ++cnt;
 
-  if ((cnt % 30) == 0) {
+  if (((conf.bot->localhub || conf.bot->hub) && (cnt % 30) == 0) || (cnt % 5) == 0) {
     autolink_cycle(NULL);         /* attempt autolinks */
     cnt = 0;
   }