From af80d407004e2e88e20aaa2dd4ce669a8d7174f4 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 19 Nov 2024 23:59:23 +0100 Subject: [PATCH] fix server start --- .../src/main/java/pp/monopoly/client/gui/CreateGameMenu.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CreateGameMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CreateGameMenu.java index ce3a37a..3d73a08 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CreateGameMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CreateGameMenu.java @@ -128,8 +128,7 @@ public class CreateGameMenu { private void startServerAndJoin() { new Thread(() -> { app.start(); - MonopolyServer server = new MonopolyServer(); - server.run(); + app.startServer(); // Warte 2 Sekunden try {