From: Vsevolod Stakhov Date: Tue, 8 Oct 2019 08:01:30 +0000 (+0100) Subject: [Fix] Fix race condition in watcher handler X-Git-Tag: 2.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac9751f06a1fd97d264772b294c4c4de3728fee9;p=thirdparty%2Frspamd.git [Fix] Fix race condition in watcher handler --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index d0d69c83cb..f7aec3e27a 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -517,8 +517,8 @@ rspamd_fuzzy_reply_io (EV_P_ ev_io *w, int revents) { struct fuzzy_session *session = (struct fuzzy_session *)w->data; - rspamd_fuzzy_write_reply (session); ev_io_stop (EV_A_ w); + rspamd_fuzzy_write_reply (session); REF_RELEASE (session); }