File tree Expand file tree Collapse file tree
core/src/main/java/net/transferproxy/network/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,20 +66,20 @@ public class PlayerConnectionImpl extends SimpleChannelInboundHandler<Serverboun
6666 private static final Logger LOGGER = LoggerFactory .getLogger (PlayerConnectionImpl .class );
6767
6868 private final Channel channel ;
69- private PacketProviderGroup packetProviderGroup ;
69+ private volatile PacketProviderGroup packetProviderGroup ;
7070
71- private ConnectionState state = ConnectionState .HANDSHAKE ;
72- private int protocol ;
73- private String hostname ;
74- private int hostPort ;
71+ private volatile ConnectionState state = ConnectionState .HANDSHAKE ;
72+ private volatile int protocol ;
73+ private volatile String hostname ;
74+ private volatile int hostPort ;
7575
7676 // This is the field that must be volatile and not the entries
7777 private volatile Map <String , CompletableFuture <byte []>> pendingCookies ;
7878
7979 private String name ;
8080 private UUID uuid ;
8181 private ClientInformation information ;
82- private boolean fromTransfer ;
82+ private volatile boolean fromTransfer ;
8383 private String brand ;
8484
8585 public PlayerConnectionImpl (final @ NotNull Channel channel ) {
You can’t perform that action at this time.
0 commit comments