Skip to content

Commit

Permalink
[fixed] stability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karlbunch committed Feb 22, 2022
1 parent 5a11638 commit a7e868f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MMOEngine/src/engine/service/proto/BaseClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,13 +992,13 @@ BasePacket* BaseClient::receiveFragmentedPacket(Packet* pack) {
}

if (!fragmentedPacket->addFragment(pack)) {
error() << "addFragment failed: " << fragmentedPacket->getError() << "; fragmentedPacket: " << *fragmentedPacket << endl << "packet: " << *pack;

if (fragmentedPacket->getReferenceCount())
fragmentedPacket->release();
else
delete fragmentedPacket;

error() << "addFragment failed: " << fragmentedPacket->getError() << "; fragmentedPacket: " << *fragmentedPacket << endl << "packet: " << *pack;

fragmentedPacket = nullptr;

throw FragmentedPacketParseException("could not insert frag");
Expand Down

0 comments on commit a7e868f

Please sign in to comment.