summaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-16 14:34:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-16 14:34:35 +0100
commit7ffeac6f52de59a57456adbbe075fec0c4cd4c49 (patch)
tree41465741f485b374ddea3ff316ca2c38bbbb612b /src/worker.c
parent7e5e5b53360d95d7d3cddc18c4811ce8a4c8cba1 (diff)
downloadrspamd-7ffeac6f52de59a57456adbbe075fec0c4cd4c49.tar.gz
rspamd-7ffeac6f52de59a57456adbbe075fec0c4cd4c49.zip
[Rework] Distinguish protocol and task flags
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c3
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);