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:
Andrzej Kapolka
2011-03-30 22:26:05 +00:00
parent c2b21f83fa
commit 194664eea9
@@ -215,7 +215,9 @@ public abstract class PeerManager
@Override public Stats clone () { @Override public Stats clone () {
try { try {
return (Stats)super.clone(); Stats cstats = (Stats)super.clone();
cstats.peerMessagesIn = new AtomicLong(peerMessagesIn.get());
return cstats;
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }