From 9bdaa48efa79d4cf9c97f30a76f66abfd4eb6f28 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Wed, 16 Mar 2011 19:30:45 +0000 Subject: [PATCH] A tourniquet to steep the bleeding on the UDP side before it gets replaced. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7003 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../networking/com/jme3/network/connection/UDPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/networking/com/jme3/network/connection/UDPConnection.java b/engine/src/networking/com/jme3/network/connection/UDPConnection.java index 5505d9e80..b33849b34 100644 --- a/engine/src/networking/com/jme3/network/connection/UDPConnection.java +++ b/engine/src/networking/com/jme3/network/connection/UDPConnection.java @@ -156,7 +156,7 @@ public class UDPConnection extends Connection { readBuffer.clear(); } - protected void send(SocketAddress dest, Object object) { + protected synchronized void send(SocketAddress dest, Object object) { try { Serializer.writeClassAndObject(writeBuffer, object); writeBuffer.flip();