public static void Stop() { Running = false; InstructionConsumer.Stop(); if (siminputserver != null) { siminputserver.Close(); } siminputserver = null; }
public static void Start(int port) { Running = true; _port = port; Thread thread = new Thread(new ThreadStart(Bind)); thread.IsBackground = true; thread.Start(); InstructionConsumer.Start(instructions); }