public static void Run() { //this should be modified to check if there's another studio open as well if (instance != null) { return; } instance = new StudioCommunicationServer(); ThreadStart mainLoop = new ThreadStart(instance.UpdateLoop); Thread updateThread = new Thread(mainLoop); updateThread.Name = "StudioCom Server"; updateThread.IsBackground = true; updateThread.Start(); }
public static void Run() { //this should be modified to check if there's another studio open as well if (Instance != null) { return; } Instance = new StudioCommunicationServer(); ThreadStart mainLoop = Instance.UpdateLoop; Thread updateThread = new(mainLoop) { CurrentCulture = CultureInfo.InvariantCulture, Name = "StudioCom Server", IsBackground = true }; updateThread.Start(); }