From c9d2f4653507dcbf012a8139a61d7852299a1992 Mon Sep 17 00:00:00 2001 From: xjoao Date: Sun, 24 May 2020 15:44:43 -0400 Subject: [PATCH 1/2] updated exception --- src/main/java/com/eu/habbo/networking/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/networking/Server.java b/src/main/java/com/eu/habbo/networking/Server.java index 800529c1..8590e074 100644 --- a/src/main/java/com/eu/habbo/networking/Server.java +++ b/src/main/java/com/eu/habbo/networking/Server.java @@ -67,7 +67,7 @@ public abstract class Server { try { this.workerGroup.shutdownGracefully(0, 0, TimeUnit.MILLISECONDS).sync(); this.bossGroup.shutdownGracefully(0, 0, TimeUnit.MILLISECONDS).sync(); - } catch (Exception e) { + } catch catch (InterruptedException e) { LOGGER.error("Exception during {} shutdown... HARD STOP", this.name, e); } LOGGER.info("GameServer Stopped!"); From b0aa1996e3e73b433db0b86cb79dc4058c3a243e Mon Sep 17 00:00:00 2001 From: xjoao Date: Sun, 24 May 2020 16:33:48 -0400 Subject: [PATCH 2/2] Apply suggestion to src/main/java/com/eu/habbo/networking/Server.java --- src/main/java/com/eu/habbo/networking/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/networking/Server.java b/src/main/java/com/eu/habbo/networking/Server.java index 8590e074..3b6d17f8 100644 --- a/src/main/java/com/eu/habbo/networking/Server.java +++ b/src/main/java/com/eu/habbo/networking/Server.java @@ -67,7 +67,7 @@ public abstract class Server { try { this.workerGroup.shutdownGracefully(0, 0, TimeUnit.MILLISECONDS).sync(); this.bossGroup.shutdownGracefully(0, 0, TimeUnit.MILLISECONDS).sync(); - } catch catch (InterruptedException e) { + } catch(InterruptedException e) { LOGGER.error("Exception during {} shutdown... HARD STOP", this.name, e); } LOGGER.info("GameServer Stopped!");