Explorar el Código

[Minor] Do not start new symbols when task is being destroyed/cleaned

tags/1.8.3
Vsevolod Stakhov hace 5 años
padre
commit
5f7111cfe6
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8
    0
      src/libserver/rspamd_symcache.c

+ 8
- 0
src/libserver/rspamd_symcache.c Ver fichero

@@ -1357,6 +1357,14 @@ rspamd_symcache_check_symbol (struct rspamd_task *task,
return TRUE;
}

if (rspamd_session_blocked (task->s)) {
/*
* We cannot add new events as session is either destroyed or
* being cleaned up.
*/
return TRUE;
}

g_assert (!item->is_virtual);
g_assert (item->specific.normal.func != NULL);
if (CHECK_START_BIT (checkpoint, dyn_item)) {

Cargando…
Cancelar
Guardar