From 6a972272c0133f0c48a2d611b688967296f6fcc9 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 5 Dec 2022 14:45:21 +0100 Subject: [PATCH] update: the capture will be stopped in the inspector destructor Signed-off-by: Andrea Terzolo --- userspace/falco/app_actions/process_events.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/userspace/falco/app_actions/process_events.cpp b/userspace/falco/app_actions/process_events.cpp index 7af019d7..907545fa 100644 --- a/userspace/falco/app_actions/process_events.cpp +++ b/userspace/falco/app_actions/process_events.cpp @@ -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(); }