From 6b36bef04f191636584d02ad29f92f59385dac65 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Fri, 12 Apr 2024 20:26:56 +0200 Subject: [PATCH] fixed a shutdown error --- modem/service_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modem/service_manager.py b/modem/service_manager.py index 7457a159..45cba984 100644 --- a/modem/service_manager.py +++ b/modem/service_manager.py @@ -40,7 +40,7 @@ class SM: elif cmd in ['stop'] and self.modem: self.stop_modem() self.stop_radio_manager() - if self.config['SOCKET_INTERFACE']['enable']: + if self.config['SOCKET_INTERFACE']['enable'] and self.socket_interface_manager: self.socket_interface_manager.stop_servers() # we need to wait a bit for avoiding a portaudio crash threading.Event().wait(0.5)