This commit is contained in:
2022-08-12 08:56:04 +02:00
parent ae0b9e3029
commit 933e2d8b8a

View File

@@ -301,6 +301,17 @@ def run(stop_event, statistics, parameter_queue, cam_client, pipeline_config, ou
bs_send_thread.join(0.1)
except:
pass
if sender:
try:
sender.close()
print "Trying to exit context"
sender.stream.context.term()
print "Done"
except:
pass
cleanup()
_logger.debug("Exiting process. %s" % log_tag)
sys.exit(exit_code)