mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-03 01:46:38 +00:00
fix(userspace/falco): check conditions in right order
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
a98a1b2c4c
commit
88c7202fdc
@ -98,6 +98,11 @@ application::run_result application::do_inspect(
|
||||
{
|
||||
rc = inspector->next(&ev);
|
||||
|
||||
if (should_reopen_outputs())
|
||||
{
|
||||
reopen_outputs();
|
||||
}
|
||||
|
||||
if(should_terminate())
|
||||
{
|
||||
terminate();
|
||||
@ -108,10 +113,6 @@ application::run_result application::do_inspect(
|
||||
restart();
|
||||
break;
|
||||
}
|
||||
else if (should_reopen_outputs())
|
||||
{
|
||||
reopen_outputs();
|
||||
}
|
||||
else if(rc == SCAP_TIMEOUT)
|
||||
{
|
||||
if(unlikely(ev == nullptr))
|
||||
|
Loading…
Reference in New Issue
Block a user