Skip to content

Commit

Permalink
Network: Add missing error return clause to WorldSocket::ProcessIncom…
Browse files Browse the repository at this point in the history
…ingData
  • Loading branch information
killerwife committed Feb 11, 2024
1 parent 614c7a4 commit 95e9881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/Server/WorldSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ bool WorldSocket::ProcessIncomingData()

self->Read(reinterpret_cast<char*>(packetBuffer->data()), packetBuffer->size(), [self, packetBuffer, opcode = opcode](const boost::system::error_code& error, std::size_t read) -> void
{
if (error) return;
std::unique_ptr<WorldPacket> pct = std::make_unique<WorldPacket>(opcode, packetBuffer->size());
pct->append(*packetBuffer.get());
if (sPacketLog->CanLogPacket() && self->IsLoggingPackets())
Expand Down

0 comments on commit 95e9881

Please sign in to comment.