diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hs_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index 260d26674..c3efb0062 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -174,6 +174,12 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker, msg_info ("compiled %d regular expressions to the hyperscan tree", ncompiled); + /* + * Do not send notification unless all other workers are started + * XXX: now we just sleep for 5 seconds to ensure that + */ + sleep (5); + srv_cmd.type = RSPAMD_SRV_HYPERSCAN_LOADED; srv_cmd.cmd.hs_loaded.cache_dir = ctx->hs_dir; |