funkemunky / AntiVPN

An antivpn utilizing the funkemunky API
Apache License 2.0
21 stars 7 forks source link

[BUG] The executor `dev.brighten.antivpn.api.VPNExecutor.threadExecutor` never exits on bukkit/spigot #51

Open C0D3-M4513R opened 2 months ago

C0D3-M4513R commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

Servers running on Bukkit/Spigot implementations, that do not halt the JVM will get stuck infinitely when shutting down, due to non-daemon, non-finalizer threads being present.

To Reproduce Steps to reproduce the behavior:

  1. Run the AntiVPN plugin on any Bukkit/Spigot implementation, that does not halt the jvm on stop.
  2. Try to stop the server.

Expected behavior A clear and concise description of what you expected to happen. The server stops

Screenshots If applicable, add screenshots to help explain your problem.

[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: Current Thread: Thread-34
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:    PID: 295 | Suspended: false | Native: false | Daemon: false | State: TIMED_WAITING
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:    Stack:
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:        java.base@17.0.11/java.lang.Thread.sleep(Native Method)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:        dev.brighten.antivpn.database.local.H2VPN.lambda$new$0(H2VPN.java:43)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:        dev.brighten.antivpn.database.local.H2VPN$$Lambda$76212/0x00007f83bba8fbf8.run(Unknown Source)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]:        java.base@17.0.11/java.lang.Thread.run(Thread.java:840)

What instance are you running KauriVPN on? Put an 'x' in the brackets to check it

Additional context Add any other context about the problem here.