From bc3744aee58527333c9de0b5fa3ad62ad6edb94a Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Thu, 4 Dec 2025 17:00:49 +0100 Subject: [PATCH] fix: use proper ServerUtils for the availability check --- client/src/main/java/client/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/client/Main.java b/client/src/main/java/client/Main.java index e722b2d..e2f58d6 100644 --- a/client/src/main/java/client/Main.java +++ b/client/src/main/java/client/Main.java @@ -22,9 +22,9 @@ import client.scenes.MainCtrl; import client.scenes.AddIngredientCtrl; import client.scenes.AddNameCtrl; import client.scenes.FoodpalApplicationCtrl; +import client.utils.ServerUtils; import com.google.inject.Injector; -import client.utils.ServerUtilsExample; import javafx.application.Application; import javafx.stage.Stage; @@ -40,7 +40,7 @@ public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception { - var serverUtils = INJECTOR.getInstance(ServerUtilsExample.class); + var serverUtils = INJECTOR.getInstance(ServerUtils.class); if (!serverUtils.isServerAvailable()) { var msg = "Server needs to be started before the client, but it does not seem to be available. Shutting down."; System.err.println(msg);