Skip to content

Commit

Permalink
Fix | Make SQLServerConnection.state volatile (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulvii authored Dec 3, 2019
1 parent ca395b0 commit 68a1b50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ final boolean rolledBackTransaction() {
return rolledBackTransaction;
}

private State state = State.Initialized; // connection state
private volatile State state = State.Initialized; // connection state

private void setState(State state) {
this.state = state;
Expand Down

0 comments on commit 68a1b50

Please sign in to comment.