Make all mutable fields in WebSocketClientHandshaker volatile
- Fixes #1945
This commit is contained in:
parent
4ce49a6195
commit
926479e904
@ -40,11 +40,11 @@ public abstract class WebSocketClientHandshaker {
|
||||
|
||||
private final WebSocketVersion version;
|
||||
|
||||
private boolean handshakeComplete;
|
||||
private volatile boolean handshakeComplete;
|
||||
|
||||
private final String expectedSubprotocol;
|
||||
|
||||
private String actualSubprotocol;
|
||||
private volatile String actualSubprotocol;
|
||||
|
||||
protected final HttpHeaders customHeaders;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user