diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 14:34:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 14:34:35 +0100 |
commit | 7ffeac6f52de59a57456adbbe075fec0c4cd4c49 (patch) | |
tree | 41465741f485b374ddea3ff316ca2c38bbbb612b /src/worker.c | |
parent | 7e5e5b53360d95d7d3cddc18c4811ce8a4c8cba1 (diff) | |
download | rspamd-7ffeac6f52de59a57456adbbe075fec0c4cd4c49.tar.gz rspamd-7ffeac6f52de59a57456adbbe075fec0c4cd4c49.zip |
[Rework] Distinguish protocol and task flags
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c index 446de0799..324f211a6 100644 --- a/src/worker.c +++ b/src/worker.c @@ -194,8 +194,7 @@ rspamd_worker_guard_handler (EV_P_ ev_io *w, int revents) * reliable way to distinguish between shutdown(SHUT_WR) and * close. */ - if (!(task->flags & RSPAMD_TASK_FLAG_JSON) && - task->cfg->enable_shutdown_workaround) { + if (task->cmd != CMD_CHECK_V2 && task->cfg->enable_shutdown_workaround) { msg_info_task ("workaround for shutdown enabled, please update " "your client, this support might be removed in future"); shutdown (w->fd, SHUT_RD); |