diff --git a/src/main.c b/src/main.c index b75db575..10f1422a 100644 --- a/src/main.c +++ b/src/main.c @@ -699,7 +699,7 @@ fail: } -#define MAINTAINANCE_TIME(s) ((s)->config->cookie_validity + 300) +#define MAINTAINANCE_TIME(s) (MIN((60 + MAX_ZOMBIE_SECS), ((s)->config->cookie_validity + 300))) static void check_other_work(main_server_st *s) {