Skip to content

Commit

Permalink
Make last times volatile.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Nov 12, 2013
1 parent 1f6d341 commit d475b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/esotericsoftware/kryonet/TcpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TcpConnection {

final Serialization serialization;
private SelectionKey selectionKey;
private long lastWriteTime, lastReadTime;
private volatile long lastWriteTime, lastReadTime;
private int currentObjectLength;
private final Object writeLock = new Object();

Expand Down

0 comments on commit d475b88

Please sign in to comment.