plug memory leak

This commit is contained in:
henry 2025-05-12 23:46:40 -04:00
parent 8ae97efd41
commit 18ddc200eb
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ namespace AccessQueueService.Data
{ {
if (_accessQueue.TryGetValue(_nowServing, out var nextUser)) if (_accessQueue.TryGetValue(_nowServing, out var nextUser))
{ {
_accessQueue.Remove(_nowServing);
_nowServing++; _nowServing++;
if (nextUser.LastActive < activeCutoff) if (nextUser.LastActive < activeCutoff)
{ {