Skip to content

Commit

Permalink
Add back sessionsChanged.Count == 0 logic
Browse files Browse the repository at this point in the history
  • Loading branch information
davmason committed Feb 15, 2023
1 parent 269bc81 commit d041560
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ protected override unsafe void HandleEnableNotification(
// change that needs more careful staging.
List<KeyValuePair<SessionInfo, bool>> sessionsChanged = GetChangedSessions();

if (sessionsChanged.Count == 0)
{
sessionsChanged.Add(new KeyValuePair<SessionInfo, bool>(new SessionInfo(0, 0), true));
}

foreach (KeyValuePair<SessionInfo, bool> session in sessionsChanged)
{
int sessionChanged = session.Key.sessionIdBit;
Expand Down

0 comments on commit d041560

Please sign in to comment.