Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +01:00
Merge pull request #279 from hugmanrique/cleanup-task
Remove tasks from lookup map upon completion
Dieser Commit ist enthalten in:
Commit
bb74fe769e
@ -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,6 +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;
|
||||
}
|
||||
});
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren