From 7e3020fd071a711c57f4d4cd10e0c3689d5f4f00 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Thu, 24 Mar 2011 19:31:30 +0000 Subject: [PATCH] Forgot to actually check the udp port for server creation... now it properly disables UDP for -1. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7107 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/networking/com/jme3/network/Network.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/networking/com/jme3/network/Network.java b/engine/src/networking/com/jme3/network/Network.java index 4a327a8fe..c7843df26 100644 --- a/engine/src/networking/com/jme3/network/Network.java +++ b/engine/src/networking/com/jme3/network/Network.java @@ -90,7 +90,7 @@ public class Network */ public static Server createServer( String gameName, int version, int tcpPort, int udpPort ) throws IOException { - UdpKernel fast = new UdpKernel(udpPort); + UdpKernel fast = udpPort == -1 ? null : new UdpKernel(udpPort); SelectorKernel reliable = new SelectorKernel(tcpPort); return new DefaultServer( gameName, version, reliable, fast );