Make all mutable fields in WebSocketClientHandshaker volatile
- Fixes #1945
This commit is contained in:
parent
5a844d0bd6
commit
9b779e50ba
@ -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