13
0
geforkt von Mirrors/Velocity

Remove kqueue bug workaround since the issue is now fixed upstream

See https://github.com/netty/netty/pull/9149
Dieser Commit ist enthalten in:
Andrew Steinborn 2019-07-02 02:36:46 -04:00
Ursprung 6784df91c7
Commit 190f2fee75

Datei anzeigen

@ -404,9 +404,6 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
} }
if (connectedServer == null) { if (connectedServer == null) {
// The player isn't yet connected to a server. Note that we need to do this in a future run
// of the event loop due to an issue with the Netty kqueue transport.
minecraftConnection.eventLoop().execute(() -> {
Optional<RegisteredServer> nextServer = getNextServerToTry(rs); Optional<RegisteredServer> nextServer = getNextServerToTry(rs);
if (nextServer.isPresent()) { if (nextServer.isPresent()) {
// There can't be any connection in flight now. // There can't be any connection in flight now.
@ -415,7 +412,6 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
} else { } else {
disconnect(friendlyReason); disconnect(friendlyReason);
} }
});
} else { } else {
boolean kickedFromCurrent = connectedServer.getServer().equals(rs); boolean kickedFromCurrent = connectedServer.getServer().equals(rs);
ServerKickResult result; ServerKickResult result;