Browse Source

[Minor] Optimize the case when there are no finish events

tags/2.0
Vsevolod Stakhov 5 years ago
parent
commit
79a6671de0
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libserver/worker_util.c

+ 5
- 0
src/libserver/worker_util.c View File

@@ -112,6 +112,11 @@ rspamd_worker_terminate_handlers (struct rspamd_worker *w)
static ev_timer margin_call;
static int nchecks = 0;

if (w->finish_actions->len == 0) {
/* Nothing to do */
return;
}

actx = (struct rspamd_abstract_worker_ctx *)w->ctx;

/*

Loading…
Cancel
Save