diff --git a/src/main/java/me/kavin/piped/Main.java b/src/main/java/me/kavin/piped/Main.java index 79bd6fd..592c097 100644 --- a/src/main/java/me/kavin/piped/Main.java +++ b/src/main/java/me/kavin/piped/Main.java @@ -42,7 +42,13 @@ public class Main { } }, 0, TimeUnit.MINUTES.toMillis(60)); - new ServerLauncher().launch(args); + new Thread(() -> { + try { + new ServerLauncher().launch(args); + } catch (Exception e) { + throw new RuntimeException(e); + } + }).start(); if (Constants.DISABLE_TIMERS) return;