]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Improve watcher check.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jun 2015 20:02:24 +0000 (16:02 -0400)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jun 2015 20:02:24 +0000 (16:02 -0400)
src/libserver/events.c

index 571347288ec3f097d7148f21e54ce202d8db6cfa..9bf86eb96869f4fa66bf83cd292976acb9134074 100644 (file)
@@ -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 ++;
        }
 }