aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/events.c')
-rw-r--r--src/libserver/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c
index 571347288..9bf86eb96 100644
--- a/src/libserver/events.c
+++ b/src/libserver/events.c
@@ -297,7 +297,7 @@ rspamd_session_watcher_push (struct rspamd_async_session *s)
{
g_assert (s != NULL);
- if (s->cur_watcher) {
+ if (RSPAMD_SESSION_IS_WATCHING (s)) {
s->cur_watcher->remain ++;
}
}