Fix race condition causing the FML handshake to hang (#5222)

This commit is contained in:
malte0811 2018-12-04 21:22:01 +01:00 committed by LexManos
parent 76d912c0ba
commit e1b4a150c3

View file

@ -242,8 +242,8 @@ public class FMLHandshakeHandler {
NetworkRegistry.LoginPayload message = messageList.get(packetPosition); NetworkRegistry.LoginPayload message = messageList.get(packetPosition);
LOGGER.debug(FMLHSMARKER, "Sending ticking packet info '{}' to '{}' sequence {}", message.getMessageContext(), message.getChannelName(), packetPosition); LOGGER.debug(FMLHSMARKER, "Sending ticking packet info '{}' to '{}' sequence {}", message.getMessageContext(), message.getChannelName(), packetPosition);
loginWrapper.sendServerToClientLoginPacket(message.getChannelName(), message.getData(), packetPosition, this.manager);
sentMessages.add(packetPosition); sentMessages.add(packetPosition);
loginWrapper.sendServerToClientLoginPacket(message.getChannelName(), message.getData(), packetPosition, this.manager);
packetPosition++; packetPosition++;
} }