From 9d9a3d43b7e3ef0ef46ea8ba4c3e0ad0e596e374 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 May 2015 16:45:08 +0100 Subject: Fix states logic broken by the previous commit. --- src/libserver/events.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libserver/events.c') diff --git a/src/libserver/events.c b/src/libserver/events.c index 4925b8c69..a453cf459 100644 --- a/src/libserver/events.c +++ b/src/libserver/events.c @@ -284,3 +284,12 @@ rspamd_session_watch_stop (struct rspamd_async_session *s) return remain; } + + +guint +rspamd_session_events_pending (struct rspamd_async_session *session) +{ + g_assert (session != NULL); + + return g_hash_table_size (session->events); +} -- cgit v1.2.3