Przeglądaj źródła

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

BDisp 8 miesięcy temu
rodzic
commit
0446c22335

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

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