Skip to content

Commit 6ed23e4

Browse files
author
Stephen Hodgson
committed
Remove the list item we match.
1 parent 8c0b091 commit 6ed23e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/HoloToolkit/Sharing/Scripts/ServerSessionsTracker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ private void OnSessionClosed(Session session)
172172
{
173173
if (Sessions[i].GetName().ToString().Equals(session.GetName().ToString()))
174174
{
175-
SessionClosed.RaiseEvent(session);
176-
Sessions.Remove(session);
175+
SessionClosed.RaiseEvent(Sessions[i]);
176+
Sessions.Remove(Sessions[i]);
177177
}
178178
}
179179
}

0 commit comments

Comments
 (0)