geforkt von Mirrors/Velocity
Ensure that the in-flight connection is always reset.
Dieser Commit ist enthalten in:
Ursprung
d7abf4457c
Commit
59ca9a534d
@ -1010,10 +1010,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
VelocityServerConnection con = new VelocityServerConnection(vrs,
|
VelocityServerConnection con = new VelocityServerConnection(vrs,
|
||||||
ConnectedPlayer.this, server);
|
ConnectedPlayer.this, server);
|
||||||
connectionInFlight = con;
|
connectionInFlight = con;
|
||||||
return con.connect().thenApplyAsync((result) -> {
|
return con.connect().whenCompleteAsync(
|
||||||
this.resetIfInFlightIs(con);
|
(result, exception) -> this.resetIfInFlightIs(con), connection.eventLoop());
|
||||||
return result;
|
|
||||||
}, connection.eventLoop());
|
|
||||||
}, connection.eventLoop());
|
}, connection.eventLoop());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren