Make all mutable fields in WebSocketClientHandshaker volatile

- Fixes #1945
This commit is contained in:
Trustin Lee 2013-10-24 17:39:50 +09:00
parent 4ce49a6195
commit 926479e904

View File

@ -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;