We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bb2585 commit 1373622Copy full SHA for 1373622
src/moomoo/Game.ts
@@ -220,10 +220,7 @@ export default class Game {
220
}
221
clientClose(socket: WebSocket) {
222
let client = this.clients.filter((e) => e.socket == socket)?.[0];
223
- /*
224
- Good error handling practices are to log "OOPS" in console
225
- */
226
- if (!client) return console.log("OOPS");
+ if (!client) return;
227
if (client.player) {
228
const index = this.state.players.indexOf(client.player);
229
0 commit comments