From 19c8432371448b2faac5780514bbb21f4401d698 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 11 Apr 2021 18:42:35 +0200 Subject: [PATCH] always perform shutdown tasks --- owrx/__main__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/owrx/__main__.py b/owrx/__main__.py index 07a5de2..26ac4c8 100644 --- a/owrx/__main__.py +++ b/owrx/__main__.py @@ -72,7 +72,9 @@ Support and info: https://groups.io/g/openwebrx server = ThreadedHttpServer(("0.0.0.0", coreConfig.get_web_port()), RequestHandler) server.serve_forever() except SignalException: - WebSocketConnection.closeAll() - Services.stop() - ReportingEngine.stopAll() - DecoderQueue.stopAll() + pass + + WebSocketConnection.closeAll() + Services.stop() + ReportingEngine.stopAll() + DecoderQueue.stopAll()