Skip to content

Commit

Permalink
Merge pull request TooTallNate#809 from fightyz/bugfix/readystate-syn…
Browse files Browse the repository at this point in the history
…chronize

Synchronize the readState field
  • Loading branch information
PhilipRoman authored Nov 15, 2018
2 parents 033a1bb + 3d8eff0 commit a8bc1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/java_websocket/WebSocketImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class WebSocketImpl implements WebSocket {
/**
* The current state of the connection
*/
private ReadyState readyState = ReadyState.NOT_YET_CONNECTED;
private volatile ReadyState readyState = ReadyState.NOT_YET_CONNECTED;

/**
* A list of drafts available for this websocket
Expand Down

0 comments on commit a8bc1bf

Please sign in to comment.