소스 검색

NumOutstanding is never equal to zero because they are always removed.

BDisp 9 달 전
부모
커밋
0446c22335
1개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 9
      Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqRequests.cs

+ 2 - 9
Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqRequests.cs

@@ -87,19 +87,12 @@ public static class EscSeqRequests
                 return;
             }
 
+            found.NumOutstanding--;
+
             if (found.NumOutstanding == 0)
             {
                 Statuses.Remove (found);
             }
-            else if (found.NumOutstanding > 0)
-            {
-                found.NumOutstanding--;
-
-                if (found.NumOutstanding == 0)
-                {
-                    Statuses.Remove (found);
-                }
-            }
         }
     }
 }