diff options
author | Igor Sysoev <igor@sysoev.ru> | 2020-04-15 14:54:09 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2020-04-15 14:54:09 +0300 |
commit | 04143c8c7ee59d24aa1d6df0377e7900e96e3f72 (patch) | |
tree | b1261cd759e8393692394fb430aa3c608681f4b7 /src/nxt_log_moderation.c | |
parent | e616d0915c513323affd938f7eb89d23d4e70df5 (diff) | |
download | unit-04143c8c7ee59d24aa1d6df0377e7900e96e3f72.tar.gz unit-04143c8c7ee59d24aa1d6df0377e7900e96e3f72.tar.bz2 |
Fixed crash that occurs when idle connections are closed forcibly.
Diffstat (limited to 'src/nxt_log_moderation.c')
-rw-r--r-- | src/nxt_log_moderation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_log_moderation.c b/src/nxt_log_moderation.c index 7c2d7a50..95f9cbfe 100644 --- a/src/nxt_log_moderation.c +++ b/src/nxt_log_moderation.c @@ -61,6 +61,7 @@ nxt_log_moderate_allow(nxt_log_moderation_t *mod) mod->timer.work_queue = &thr->engine->fast_work_queue; mod->timer.handler = nxt_log_moderate_timer_handler; mod->timer.log = &nxt_main_log; + mod->timer.task = &nxt_main_task; nxt_timer_add(thr->engine, &mod->timer, 1000); } |