diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-21 13:49:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-21 13:49:43 +0100 |
commit | 493f3728d6f4e2621a382c3e5729688c9ceec683 (patch) | |
tree | 39c7323a43dddb2077a837adca28d0921b5ef14b | |
parent | e1ed8edbcc2f61bc59269441bb23c4148a0eca21 (diff) | |
download | rspamd-493f3728d6f4e2621a382c3e5729688c9ceec683.tar.gz rspamd-493f3728d6f4e2621a382c3e5729688c9ceec683.zip |
[Minor] Fix setting watcher for a session
-rw-r--r-- | src/libserver/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c index 6021f0a39..d9030c5b3 100644 --- a/src/libserver/events.c +++ b/src/libserver/events.c @@ -305,7 +305,6 @@ rspamd_session_watch_start (struct rspamd_async_session *session, if (session->cur_watcher == NULL) { session->cur_watcher = rspamd_mempool_alloc0 (session->pool, sizeof (*session->cur_watcher)); - session->flags |= RSPAMD_SESSION_FLAG_WATCHING; } st_elt = rspamd_mempool_alloc (session->pool, sizeof (*st_elt)); @@ -314,6 +313,7 @@ rspamd_session_watch_start (struct rspamd_async_session *session, LL_PREPEND (session->cur_watcher->st, st_elt); session->cur_watcher->id = id; + session->flags |= RSPAMD_SESSION_FLAG_WATCHING; } guint |