aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/events.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 16:45:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 16:45:08 +0100
commit9d9a3d43b7e3ef0ef46ea8ba4c3e0ad0e596e374 (patch)
treef209e8dd2509337d7a35da8f293bd5da944ce78a /src/libserver/events.c
parent3870577d1605c03bee6f1bc67f79365bf3906c97 (diff)
downloadrspamd-9d9a3d43b7e3ef0ef46ea8ba4c3e0ad0e596e374.tar.gz
rspamd-9d9a3d43b7e3ef0ef46ea8ba4c3e0ad0e596e374.zip
Fix states logic broken by the previous commit.
Diffstat (limited to 'src/libserver/events.c')
-rw-r--r--src/libserver/events.c9
1 files changed, 9 insertions, 0 deletions
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);
+}