Description
The user can currently start a new bot instance while the old one is shutting down.
This can cause unexpected results with clean-up, including:
- Remote input locking down and throwing
- Mouse overlay not erasing
- Potential to start a new script while another is running
To Reproduce
- Go to the web UI
- Click on a script
- Select fixed mode
- Spam the start/stop button
- See error
Next Steps
- Improve state management for the ScriptInstanceManager
- Grey out the stop button while the script is shutting down/cleaning