Skip to content

Commit

Permalink
Update ActorEventDispatcher.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Rachel committed May 19, 2024
1 parent caca09c commit 5c993d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void CheckDelayDelete(int eventId)
{
Log.Info("remove delay delete eventId[{0}]", eventId);
listListener[i] = listListener[^1];
EventRegInfo.Release(listListener[i]);
EventRegInfo.Release(listListener[^1]);
listListener.RemoveAt(listListener.Count - 1);
i--;
}
Expand Down Expand Up @@ -476,7 +476,7 @@ public void RemoveAllListenerByOwner(object owner)
else
{
list[i] = list[^1];
EventRegInfo.Release(list[i]);
EventRegInfo.Release(list[^1]);
list.RemoveAt(list.Count - 1);
i--;
}
Expand Down

0 comments on commit 5c993d9

Please sign in to comment.