Skip to content

Commit

Permalink
Fix potential NullReferenceException when disabling a user
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Feb 27, 2024
1 parent 786f98d commit 8a60896
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ public void AbortUnauthedConnections(User user)
return old;
});

foreach (var context in connections!)
context.Abort();
if (connections != null)
foreach (var context in connections)
context.Abort();
}
}
}

0 comments on commit 8a60896

Please sign in to comment.