Actually reduced cpu usage by 30%

This commit is contained in:
2015-11-01 20:49:25 +01:00
parent 9fa1512efd
commit d48471ea34
@@ -178,13 +178,11 @@ namespace ErgometerApplication
{
while(running)
{
if(Doctor.Connected && Doctor.Available > 0)
if(Doctor.Connected)
{
NetCommand command = NetHelper.ReadNetCommand(Doctor);
ParseCommand(command);
}
Thread.Sleep(10);
}
if(Doctor != null)