Просмотр исходного кода

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

Bryan Drewery 16 лет назад
Родитель
Сommit
e3b75ae10b
1 измененных файлов с 1 добавлено и 1 удалено
  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;
   }