File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -363,15 +363,16 @@ def wait_until_interrupt(virtual_machine_container_reset_factory_time_seconds, c
363
363
start_containers (configuration )
364
364
if not new_network_events_thread .is_alive ():
365
365
error (messages ["interrupt_application" ])
366
- return True
367
-
366
+ new_network_events_thread . terminate ()
367
+ break
368
368
if containers_are_unhealthy (configuration ):
369
369
error (
370
370
"Interrupting the application because \" {0}\" container(s) is(are) not alive!" .format (
371
371
", " .join (containers_are_unhealthy (configuration ))
372
372
)
373
373
)
374
- return True
374
+ new_network_events_thread .terminate ()
375
+ break
375
376
if run_as_test :
376
377
break
377
378
except KeyboardInterrupt :
@@ -887,9 +888,6 @@ def load_honeypot_engine():
887
888
)
888
889
# killed the network traffic capture process by ctrl + c... waiting to end.
889
890
info (messages ["killing_capture_process" ])
890
- if exit_flag :
891
- # Terminate the network capture process
892
- network_traffic_capture_process .terminate ()
893
891
if run_as_test :
894
892
network_traffic_capture_process .terminate ()
895
893
# without ci it will be terminate after a few seconds, it needs to kill the tshark and update pcap file collection
You can’t perform that action at this time.
0 commit comments