mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 09:31:54 +00:00
Fixing CPU issue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user