fix possible node serialization problem (dont share the byte buffer)

This commit is contained in:
kimchy 2010-02-23 23:37:33 +02:00
parent b5544769d2
commit d1a4989e84
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ public class JgroupsDiscovery extends AbstractComponent implements Discovery, Re
ByteArrayDataOutputStream os = new ByteArrayDataOutputStream();
localNode.writeTo(os);
os.close();
return os.unsafeByteArray();
return os.copiedByteArray();
}
private void sendInitialStateEventIfNeeded() {