Actually reduced cpu usage by 30%
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user