Need to copy the value, not the reference, for peerMessagesIn.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6567 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -215,7 +215,9 @@ public abstract class PeerManager
|
||||
|
||||
@Override public Stats clone () {
|
||||
try {
|
||||
return (Stats)super.clone();
|
||||
Stats cstats = (Stats)super.clone();
|
||||
cstats.peerMessagesIn = new AtomicLong(peerMessagesIn.get());
|
||||
return cstats;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user