We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0ab68 commit c8effaeCopy full SHA for c8effae
system/ui/lib/wifi_manager.py
@@ -138,6 +138,8 @@ def __init__(self):
138
self._nm = DBusAddress(NM_PATH, bus_name=NM, interface=NM_IFACE)
139
except FileNotFoundError:
140
cloudlog.exception("Failed to connect to system D-Bus")
141
+ self._router_main = None
142
+ self._conn_monitor = None
143
self._exit = True
144
145
# Store wifi device path
@@ -752,6 +754,8 @@ def stop(self):
752
754
if self._state_thread.is_alive():
753
755
self._state_thread.join()
756
- self._router_main.close()
- self._router_main.conn.close()
757
- self._conn_monitor.close()
+ if self._router_main is not None:
758
+ self._router_main.close()
759
+ self._router_main.conn.close()
760
+ if self._conn_monitor is not None:
761
+ self._conn_monitor.close()
0 commit comments