Actually reduced cpu usage by 30%
This commit is contained in:
@@ -123,13 +123,11 @@ namespace ErgometerDoctorApplication
|
||||
{
|
||||
while (running)
|
||||
{
|
||||
if (loggedin && Server.Connected && Server.Available > 0)
|
||||
if (loggedin && Server.Connected)
|
||||
{
|
||||
NetCommand command = NetHelper.ReadNetCommand(Server);
|
||||
HandleNetCommand(command);
|
||||
}
|
||||
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
|
||||
if(Server != null)
|
||||
|
||||
Reference in New Issue
Block a user