Skip to content

Commit

Permalink
fix: #17 KcpConnection.ReceiveNextReliable now assigns message defaul…
Browse files Browse the repository at this point in the history
…t so it works in .net too
  • Loading branch information
vis2k committed May 28, 2021
1 parent 4c7f7c1 commit 0c63f3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kcp2k/Assets/kcp2k/highlevel/KcpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ bool ReceiveNextReliable(out KcpHeader header, out ArraySegment<byte> message)
}
}

message = default;
header = KcpHeader.Disconnect;
return false;
}
Expand Down

0 comments on commit 0c63f3a

Please sign in to comment.