From fe67e5078fb5758323b23b46a7258ac95c4f3133 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 17 Feb 2024 08:37:57 +0100 Subject: [PATCH] Add errornous shutdown logging --- src/de/steamwar/bungeecore/Subserver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Subserver.java b/src/de/steamwar/bungeecore/Subserver.java index c37a0b5..d10372f 100644 --- a/src/de/steamwar/bungeecore/Subserver.java +++ b/src/de/steamwar/bungeecore/Subserver.java @@ -140,8 +140,10 @@ public class Subserver { } try { - if(!process.waitFor(1, TimeUnit.MINUTES)) + if(!process.waitFor(1, TimeUnit.MINUTES)) { + logger.log(Level.SEVERE, () -> serverName + " did not stop correctly, forcibly stopping!"); process.destroyForcibly(); + } thread.join(); }catch(InterruptedException e){