time service contains bug, it cannot stop after edge

This commit is contained in:
Youmu Liu
2025-12-08 18:02:09 +08:00
parent 588fa867af
commit f960982bd3
17 changed files with 313 additions and 188 deletions
+1
View File
@@ -119,6 +119,7 @@ namespace StgSharp
{
if (!_subscribers[i].OnSpanTick(elapsedTicks))
{
Console.WriteLine("removed");
_subscribers.RemoveAt(i);
i--; // adjust index after removal
}