Make sure to mark the in-flight connection.

This commit is contained in:
Andrew Steinborn
2018-11-23 18:25:35 -05:00
parent e2ad6b740a
commit 436c1624bc

View File

@@ -517,8 +517,12 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
return CompletableFuture
.completedFuture(ConnectionRequestResults.plainResult(lastCheck.get()));
}
return new VelocityServerConnection((VelocityRegisteredServer) rs,
ConnectedPlayer.this, server).connect();
VelocityRegisteredServer vrs = (VelocityRegisteredServer) rs;
VelocityServerConnection con = new VelocityServerConnection(vrs, ConnectedPlayer.this,
server);
connectionInFlight = con;
return con.connect();
});
}