3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Ensure that the in-flight connection is always reset.

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-06-20 17:36:44 -04:00
Ursprung d7abf4457c
Commit 59ca9a534d

Datei anzeigen

@ -1010,10 +1010,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
VelocityServerConnection con = new VelocityServerConnection(vrs,
ConnectedPlayer.this, server);
connectionInFlight = con;
return con.connect().thenApplyAsync((result) -> {
this.resetIfInFlightIs(con);
return result;
}, connection.eventLoop());
return con.connect().whenCompleteAsync(
(result, exception) -> this.resetIfInFlightIs(con), connection.eventLoop());
}, connection.eventLoop());
});
}