mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b3f79d9453
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‘t initialize yet
|
||||
if (asyncSendingTask == null) {
|
||||
return;
|
||||
}
|
||||
if (!taskDone.get()) {
|
||||
if (!taskDone.get() || asyncSendingTask.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
taskDone.set(false);
|
||||
|
||||
Reference in new issue
Block a user