Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Jan 5, 2024
1 parent d5fcf40 commit 87b029d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Tikhole.Website/Components/Pages/Dashboard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@
}
private void Parser_ParsedResponseData(object? sender, Engine.ParsedResponseDataEventArgs e)
{
Semaphore.Wait();
if (DNSPackets.Count > RequestQueueMax) _ = DNSPackets.Dequeue();
DNSPackets.Enqueue(e.DNSPacket);
Semaphore.Release();
InvokeStateChange();
_ = Task.Run(() =>
{
Semaphore.Wait();
if (DNSPackets.Count > RequestQueueMax) _ = DNSPackets.Dequeue();
DNSPackets.Enqueue(e.DNSPacket);
Semaphore.Release();
InvokeStateChange();
});
}
}

0 comments on commit 87b029d

Please sign in to comment.