From 933e2d8b8aee3b5f208fe3e5b2993f498006cbad Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Fri, 12 Aug 2022 08:56:04 +0200 Subject: [PATCH] Startup --- script/processing.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/script/processing.py b/script/processing.py index 9236451..3db4911 100644 --- a/script/processing.py +++ b/script/processing.py @@ -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)