From 49c393a6f8bd3eff3da9f71b5aec12df23c61abf Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Tue, 27 Jul 2021 23:58:27 +0800 Subject: [PATCH] Don't cancel handler --- .../java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java | 1 - .../quickshop/util/reporter/error/RollbarErrorReporter.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java index ac9abd629..3afd7716a 100644 --- a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java @@ -266,7 +266,6 @@ public class VirtualDisplayItem extends DisplayItem { private void unload() { packetSenders.clear(); if (packetAdapter != null) { - asyncListenerHandler.cancel(); asyncListenerHandler.stop(); protocolManager.getAsynchronousManager().unregisterAsyncHandler(packetAdapter); //protocolManager.removePacketListener(packetAdapter); diff --git a/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java b/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java index a143ad8b0..9bbbd8215 100644 --- a/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java +++ b/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java @@ -372,7 +372,7 @@ public class RollbarErrorReporter { return true; } if (possiblyLevel == PossiblyLevel.MAYBE) { - plugin.getLogger().warning("This seems not a QuickShop. If you have any question, you should ask QuickShop developer."); + plugin.getLogger().warning("This seems not a QuickShop error. If you have any question, you should ask QuickShop developer."); return true; } return false;