فهرست منبع

Reduced CPU Usage

Kenneth van Ewijk 10 سال پیش
والد
کامیت
4f322fd866
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      ErgometerIPR/ErgometerApplication/MainClient.cs
  2. 1 1
      ErgometerIPR/ErgometerDoctorApplication/MainClient.cs

+ 1 - 1
ErgometerIPR/ErgometerApplication/MainClient.cs

@@ -183,7 +183,7 @@ namespace ErgometerApplication
         {
             while(running)
             {
-                if(Doctor.Connected && Doctor.Available > 0)
+                if(Doctor.Connected)
                 {
                     NetCommand command = NetHelper.ReadNetCommand(Doctor);
                     ParseCommand(command);

+ 1 - 1
ErgometerIPR/ErgometerDoctorApplication/MainClient.cs

@@ -123,7 +123,7 @@ namespace ErgometerDoctorApplication
         {
             while (running)
             {
-                if (loggedin && Server.Connected && Server.Available > 0)
+                if (loggedin && Server.Connected)
                 {
                     NetCommand command = NetHelper.ReadNetCommand(Server);
                     HandleNetCommand(command);