Skip to content

Commit

Permalink
Give a chance to throw message exceptions after deserialising
Browse files Browse the repository at this point in the history
  • Loading branch information
NZSmartie committed Nov 29, 2017
1 parent 2c5ef86 commit 0c6788e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoAPNet/CoapMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public void Deserialise(byte[] data)
if (data[i] == 0xFF)
{
Payload = data.Skip(i + 1).ToArray();
return;
break;
}

var optCode = (data[i] & 0xF0) >> 4;
Expand Down

0 comments on commit 0c6788e

Please sign in to comment.