Skip to content

Commit

Permalink
erwadsdrawewae
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf109909 committed Dec 21, 2023
1 parent cb99ce9 commit 9244b77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NorthstarDLL/shared/kcpintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ int FecLayer::input(const NetBuffer& buf, const NetContext& ctx)
for (auto& rBuf : reconstructed)
{
auto fecSize = rBuf.getU16H();

if (fecSize < 2)
{
NS::log::NEW_NET.get()->warn("[FEC] top->input {} spurious reconstructed with fecSize < 2", ctx);
Expand Down Expand Up @@ -832,6 +833,7 @@ std::vector<NetBuffer> FecLayer::encode(const NetBuffer& buf)
newBuf.putU16H(buf.size() + 2);
newBuf.putU16H(FEC_TYPE_DATA); // flag
newBuf.putU32H(eNext); // seqid
eNext++;

result.push_back(newBuf);

Expand Down

0 comments on commit 9244b77

Please sign in to comment.