Fixing CPU issue

This commit is contained in:
Dawson Hessler
2020-10-02 12:16:37 -04:00
parent 8205c4b8e7
commit 83d1c23088
2 changed files with 8 additions and 0 deletions
@@ -60,6 +60,9 @@ public class AntiVPN extends JavaPlugin {
print(false, "threads");
AntiVPN.INSTANCE.vpnHandler.shutdown();
print(false, "removing commands");
Atlas.getInstance().getCommandManager(this).unregisterCommands();
print(false, "handlers");
MiscUtils.printToConsole("&aCompleted shutdown.");
@@ -50,6 +50,11 @@ public class VPNHandler {
} else cached.put(value.one, response);
} else queue.add(value);
}
try {
Thread.sleep(50L);
} catch (InterruptedException e) {
e.printStackTrace();
}
run();
}
});