Skip to content

Commit

Permalink
Update ActorEventDispatcher.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ALEXTANGXIAO committed May 19, 2024
1 parent c2edf71 commit db6e715
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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 @@ -475,7 +475,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 db6e715

Please sign in to comment.