diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 17:02:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 17:02:52 +0100 |
commit | 1906702b4f78171b56a12e2abd3bda074de5ed52 (patch) | |
tree | 53036ab9f7f0f516b8a41bfa2925b983ee2b9b63 | |
parent | ddb45e9d60b7174fe5fb1ca8ab1478b4ad0fdf03 (diff) | |
download | rspamd-1906702b4f78171b56a12e2abd3bda074de5ed52.tar.gz rspamd-1906702b4f78171b56a12e2abd3bda074de5ed52.zip |
Fix race condition for watcher removal.
-rw-r--r-- | src/lua/lua_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 427a23827..e87da02b1 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -123,8 +123,8 @@ static void lua_http_maybe_free (struct lua_http_cbdata *cbd) { if (cbd->session) { - rspamd_session_remove_event (cbd->session, lua_http_fin, cbd); rspamd_session_watcher_pop (cbd->session, cbd->w); + rspamd_session_remove_event (cbd->session, lua_http_fin, cbd); } else { lua_http_fin (cbd); |