mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 18:39:44 -05:00
1 parent
bde33d05d4
commit
a6e18f58e7
1 file changed
+3
-2
@@ -81,10 +81,11 @@ public class AsyncPacketSender {
|
||||
//lazy initialize
|
||||
if (asyncSendingTask == null || asyncSendingTask.isCancelled()) {
|
||||
asyncSendingTask = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, () -> {
|
||||
if (asyncSendingTask.isCancelled()) {
|
||||
//Variable haven set yet
|
||||
if (asyncSendingTask == null) {
|
||||
return;
|
||||
}
|
||||
if (!taskDone.get()) {
|
||||
if (!taskDone.get() || asyncSendingTask.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
taskDone.set(false);
|
||||
|
||||
Reference in new issue
Block a user