From ba7612a304dd3bd269ecc61c10cac4196265e643 Mon Sep 17 00:00:00 2001 From: Jack Garrard Date: Fri, 21 Oct 2022 12:57:40 -0700 Subject: [PATCH] Fix a changed variable --- source/server/SocketClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/server/SocketClient.cpp b/source/server/SocketClient.cpp index b1f7f94..2bac52f 100644 --- a/source/server/SocketClient.cpp +++ b/source/server/SocketClient.cpp @@ -253,8 +253,8 @@ bool SocketClient::recv() { Packet *packet = reinterpret_cast(packetBuf); - if(mPacketQueue.size() < maxBufSize - 1) { - mPacketQueue.pushBack(packet); + if(!mRecvQueue.isFull()) { + mRecvQueue.push((s64)packet, sead::MessageQueue::BlockType::NonBlocking); this->has_recv_udp = true; } else { free(packetBuf);