Refactor package deserialization.

This commit is contained in:
Christian Kratky
2018-06-17 14:36:32 +02:00
parent 56e9e15ac0
commit baac26c5f6
7 changed files with 50 additions and 22 deletions
@@ -157,10 +157,6 @@ namespace MQTTnet.Adapter
private async Task<ReceivedMqttPacket> ReceiveAsync(IMqttChannel channel, CancellationToken cancellationToken)
{
var fixedHeader = await MqttPacketReader.ReadFixedHeaderAsync(channel, cancellationToken).ConfigureAwait(false);
if (fixedHeader == null)
{
return null;
}
try
{