update: the capture will be stopped in the inspector destructor

Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
Andrea Terzolo
2022-12-05 14:45:21 +01:00
committed by poiana
parent 55deb452d8
commit 6a972272c0

View File

@@ -158,7 +158,6 @@ application::run_result application::do_inspect(
// //
// Event read error. // Event read error.
// //
inspector->stop_capture();
return run_result::fatal(inspector->getlasterr()); 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)) if(check_drops_and_timeouts && !sdropmgr.process_event(inspector, ev))
{ {
inspector->stop_capture();
return run_result::fatal("Drop manager internal error"); return run_result::fatal("Drop manager internal error");
} }
@@ -228,11 +226,6 @@ application::run_result application::do_inspect(
num_evts++; num_evts++;
} }
//
// Stop capture
//
inspector->stop_capture();
return run_result::ok(); return run_result::ok();
} }