From ad6b4badcb392087bd73c2f604d483d11d863fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ja=C5=BCd=C5=BCyk?= Date: Fri, 29 Dec 2023 19:10:53 +0100 Subject: [PATCH] small fixes --- .../java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java index d89fe6c..fb4b6f7 100644 --- a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java +++ b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java @@ -60,6 +60,8 @@ public void onError(Exception ex) { @Override public void onDisable() { - socket.close(); + if(socket != null){ + socket.close(); + } } } \ No newline at end of file