13
0
geforkt von Mirrors/Velocity

Only finish non-repeating tasks

Dieser Commit ist enthalten in:
Hugo Manrique 2020-03-13 18:52:15 +01:00
Ursprung 6ec6beedbd
Commit d722422947
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A60730A4A4ACE782

Datei anzeigen

@ -3,7 +3,6 @@ package com.velocitypowered.proxy.scheduler;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
@ -187,7 +186,9 @@ public class VelocityScheduler implements Scheduler {
} catch (Exception e) {
Log.logger.error("Exception in task {} by plugin {}", runnable, plugin, e);
} finally {
if (repeat == 0) {
onFinish();
}
currentTaskThread = null;
}
});