fixed a shutdown error

This commit is contained in:
DJ2LS 2024-04-12 20:26:56 +02:00
parent 93a9cba781
commit 6b36bef04f

View file

@ -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)