refactor: channel response test packet

This commit is contained in:
Timothy Schenk 2023-11-13 21:16:02 +01:00
parent 98aa813f65
commit a9f382963b

View file

@ -71,7 +71,16 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
}
else
{
responsePacket = new ChannelSelectionResponsePacket
responsePacket = CreateTestChannelSelectionResponsePacket();
}
authSession.Send(responsePacket);
return Task.CompletedTask;
}
private static ChannelSelectionResponsePacket CreateTestChannelSelectionResponsePacket()
{
return new ChannelSelectionResponsePacket
{
ChannelIsFullFlag = 0,
Endpoint = "127.0.0.1",
@ -102,8 +111,4 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
},
};
}
authSession.Send(responsePacket);
return Task.CompletedTask;
}
}