From 3a28086c9d80313d6904c2dc09c2bd184cf84047 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:52:19 +0100 Subject: [PATCH] Fixed issues with docker thinking ViaProxy is stopped --- src/main/java/net/raphimc/viaproxy/ViaProxy.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/raphimc/viaproxy/ViaProxy.java b/src/main/java/net/raphimc/viaproxy/ViaProxy.java index d454500..40070ac 100644 --- a/src/main/java/net/raphimc/viaproxy/ViaProxy.java +++ b/src/main/java/net/raphimc/viaproxy/ViaProxy.java @@ -134,6 +134,10 @@ public class ViaProxy { loaderThread.join(); Logger.LOGGER.info("ViaProxy started successfully!"); startProxy(); + + while (true) { + Thread.sleep(Integer.MAX_VALUE); + } } public static void startProxy() {