-
Improvement
-
Resolution: Fixed
-
Major
-
master
Turning on demo mode, turning it off, then turning it on again a second time will crash the control panel with the exception:
Dec 04 06:48:06 raspberrypi4-64 python3[716]: Traceback (most recent call last): Dec 04 06:48:06 raspberrypi4-64 python3[716]: File "/usr/libexec/agl-demo-control-panel/Widgets/ICPage.py", line 280, in handle_Script_toggle Dec 04 06:48:06 raspberrypi4-64 python3[716]: self.vehicle_simulator.start() Dec 04 06:48:06 raspberrypi4-64 python3[716]: File "/usr/libexec/agl-demo-control-panel/Widgets/ICPage.py", line 387, in start Dec 04 06:48:06 raspberrypi4-64 python3[716]: self.thread.start() Dec 04 06:48:06 raspberrypi4-64 python3[716]: File "/usr/lib/python3.10/threading.py", line 930, in start Dec 04 06:48:06 raspberrypi4-64 python3[716]: raise RuntimeError("threads can only be started once") Dec 04 06:48:06 raspberrypi4-64 python3[716]: RuntimeError: threads can only be started once