Make all mutable fields in WebSocketClientHandshaker volatile

- Fixes #1945
This commit is contained in:
Trustin Lee 2013-10-24 17:37:39 +09:00
parent 5a844d0bd6
commit 9b779e50ba

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;