mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 08:32:12 +00:00
fix(userspace/falco): properly start/stop capture.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
928ad6625b
commit
17dfe4f55d
@ -231,6 +231,7 @@ void application::process_inspector_events(
|
||||
application::source_sync_context* sync,
|
||||
application::run_result* res) noexcept
|
||||
{
|
||||
inspector->start_capture();
|
||||
try
|
||||
{
|
||||
double duration;
|
||||
@ -276,7 +277,7 @@ void application::process_inspector_events(
|
||||
{
|
||||
*res = run_result::fatal(e.what());
|
||||
}
|
||||
|
||||
inspector->stop_capture();
|
||||
if (sync)
|
||||
{
|
||||
sync->finish();
|
||||
|
Loading…
Reference in New Issue
Block a user