From 61e74766001ca02141ba3b5b127e299206a0f5be Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 30 Sep 2022 11:38:41 +0100 Subject: [PATCH] remove case for pong --- server/serverHandler.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/serverHandler.js b/server/serverHandler.js index 24a5bd5..6ab7438 100755 --- a/server/serverHandler.js +++ b/server/serverHandler.js @@ -177,10 +177,6 @@ module.exports = async function(req, res) { UserPresenceBundle(PacketUser); break; - case packetIDs.client_pong: // Pretty sure this is just a client ping - // so we probably don't do anything here - break; // It's probably just the client wanting to pull data down. (That's exactly what it is) - case packetIDs.client_startSpectating: Spectator.startSpectatingUser(PacketUser, CurrentPacket.data); break; @@ -328,7 +324,7 @@ module.exports = async function(req, res) { default: // Ignore client_beatmapInfoRequest and client_receiveUpdates - if (CurrentPacket.id == 68 || CurrentPacket.id == 79) break; + if (CurrentPacket.id == 68 || CurrentPacket.id == 79 || CurrentPacket.id == 4) break; // Print out unimplemented packet console.dir(CurrentPacket); break;