Browse Source

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

BDisp 8 months ago
parent
commit
0446c22335
1 changed files with 2 additions and 9 deletions
  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);
-                }
-            }
         }
     }
 }