Skip to content

Commit 0446c22

Browse files
committed
NumOutstanding is never equal to zero because they are always removed.
1 parent 50b0f5a commit 0446c22

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqRequests.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,12 @@ public static void Remove (string terminator)
8787
return;
8888
}
8989

90+
found.NumOutstanding--;
91+
9092
if (found.NumOutstanding == 0)
9193
{
9294
Statuses.Remove (found);
9395
}
94-
else if (found.NumOutstanding > 0)
95-
{
96-
found.NumOutstanding--;
97-
98-
if (found.NumOutstanding == 0)
99-
{
100-
Statuses.Remove (found);
101-
}
102-
}
10396
}
10497
}
10598
}

0 commit comments

Comments
 (0)