diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-13 10:15:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-13 10:15:47 +0100 |
commit | 5480f08714f4ce095ea9cb4d881c11b225e949c4 (patch) | |
tree | c579b3e82163bd06614fa8bfbee6bc6f899ecf9e /src/libserver/events.h | |
parent | c05c2b3b82b21c0cad3faf621a11ab9b250ec8e1 (diff) | |
download | rspamd-5480f08714f4ce095ea9cb4d881c11b225e949c4.tar.gz rspamd-5480f08714f4ce095ea9cb4d881c11b225e949c4.zip |
[Fix] Implement watchers replacement to handle nested calls
Diffstat (limited to 'src/libserver/events.h')
-rw-r--r-- | src/libserver/events.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/events.h b/src/libserver/events.h index bab1848c2..68895d38d 100644 --- a/src/libserver/events.h +++ b/src/libserver/events.h @@ -151,6 +151,10 @@ void rspamd_session_watcher_pop (struct rspamd_async_session *s, struct rspamd_async_watcher* rspamd_session_get_watcher ( struct rspamd_async_session *s); +struct rspamd_async_watcher* rspamd_session_replace_watcher ( + struct rspamd_async_session *s, + struct rspamd_async_watcher *w); + /** * Returns TRUE if an async session is currently destroying * @param s |