Fix nullable warning in FReceivedPacketView

This commit is contained in:
AeonLucid
2022-01-09 20:33:10 +01:00
parent d657ca8f23
commit 29bd62cc9e
3 changed files with 13 additions and 8 deletions
@@ -33,13 +33,11 @@ public class FReceiveThreadRunnable : IAsyncDisposable
{
if (_receiveQueue.TryDequeue(out var packet))
{
result = new FReceivedPacketView
{
DataView = new FPacketDataView(packet.Buffer, packet.Buffer.Length),
Address = packet.Address,
Traits = new FInPacketTraits()
};
result = new FReceivedPacketView(
new FPacketDataView(packet.Buffer, packet.Buffer.Length),
packet.Address,
new FInPacketTraits());
return true;
}