From 5a2eaf74ca7fe534d89b71749bf40e0a453ec3ad Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 1 Apr 2025 12:54:53 +0200 Subject: [PATCH] Fix --- backend/src/SocketIO/GameManager/GameManager.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/SocketIO/GameManager/GameManager.js b/backend/src/SocketIO/GameManager/GameManager.js index eeaf464..f66aaa8 100644 --- a/backend/src/SocketIO/GameManager/GameManager.js +++ b/backend/src/SocketIO/GameManager/GameManager.js @@ -27,9 +27,8 @@ class GameManager { if(!wasInLobby) user.socket.disconnect(); - const code = this.generateNonExistingCode(); - const game = new Game(this.io, this, code); - this.games.set(code, game); + // Checken ob lobby existiert + // neuen Lobby erstellen Aufgabe } generateNonExistingCode() {