SoonerRobotics / scrabby

The Sooner Competitive Robotics simulator
https://sim.soonerrobotics.org/
4 stars 0 forks source link

Changed networking to only initalize on Play #2

Closed noahzemlin closed 1 year ago

noahzemlin commented 1 year ago

This change fixes the issue with the simulator disconnecting all clients after returning to the main menu by re-initalizing all connections on Play.

This also means that the connections are no longer initalized upon the launch of Scrabby, but I think this is a good change. In the future, there could be options in the Settings to turn on/off different networking options (PyScrabby, ROS, etc) to reduce number of threads.