Actually reduced cpu usage by 30%

This commit is contained in:
2015-11-01 20:48:57 +01:00
parent 2de542f664
commit 1264d2d6c9
+1 -3
View File
@@ -123,13 +123,11 @@ 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);
} }
Thread.Sleep(10);
} }
if(Server != null) if(Server != null)