Reduced CPU Usage

This commit is contained in:
2015-11-01 20:51:26 +01:00
parent 73a64eed2e
commit 4f322fd866
2 changed files with 2 additions and 2 deletions
@@ -183,7 +183,7 @@ namespace ErgometerApplication
{ {
while(running) while(running)
{ {
if(Doctor.Connected && Doctor.Available > 0) if(Doctor.Connected)
{ {
NetCommand command = NetHelper.ReadNetCommand(Doctor); NetCommand command = NetHelper.ReadNetCommand(Doctor);
ParseCommand(command); ParseCommand(command);
@@ -123,7 +123,7 @@ namespace ErgometerDoctorApplication
{ {
while (running) while (running)
{ {
if (loggedin && Server.Connected && Server.Available > 0) if (loggedin && Server.Connected)
{ {
NetCommand command = NetHelper.ReadNetCommand(Server); NetCommand command = NetHelper.ReadNetCommand(Server);
HandleNetCommand(command); HandleNetCommand(command);