mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-31 06:10:45 +00:00
update: the capture will be stopped in the inspector destructor
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
@@ -158,7 +158,6 @@ application::run_result application::do_inspect(
|
||||
//
|
||||
// Event read error.
|
||||
//
|
||||
inspector->stop_capture();
|
||||
return run_result::fatal(inspector->getlasterr());
|
||||
}
|
||||
|
||||
@@ -203,7 +202,6 @@ application::run_result application::do_inspect(
|
||||
|
||||
if(check_drops_and_timeouts && !sdropmgr.process_event(inspector, ev))
|
||||
{
|
||||
inspector->stop_capture();
|
||||
return run_result::fatal("Drop manager internal error");
|
||||
}
|
||||
|
||||
@@ -228,11 +226,6 @@ application::run_result application::do_inspect(
|
||||
num_evts++;
|
||||
}
|
||||
|
||||
//
|
||||
// Stop capture
|
||||
//
|
||||
inspector->stop_capture();
|
||||
|
||||
return run_result::ok();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user