Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-26 00:00:55 +01:00
Fix task cancellation
Dieser Commit ist enthalten in:
Ursprung
80477f6a0e
Commit
60ac285b17
@ -22,7 +22,7 @@ public class PlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void activated() {
|
public void activated() {
|
||||||
EventLoop loop = player.getConnection().getChannel().eventLoop();
|
EventLoop loop = player.getConnection().getChannel().eventLoop();
|
||||||
loop.scheduleAtFixedRate(this::ping, 5, 15, TimeUnit.SECONDS);
|
pingTask = loop.scheduleAtFixedRate(this::ping, 5, 15, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ping() {
|
private void ping() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren