- fix DefaultServer initialization, it would place a null in the channels list (tcp/udp channels) if there was no UPD poprt specified.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9114 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 9817fa4ef6
commit fb68a176b5
  1. 5
      engine/src/networking/com/jme3/network/base/DefaultServer.java

@ -95,12 +95,11 @@ public class DefaultServer implements Server
this.version = version;
reliableAdapter = new KernelAdapter( this, reliable, dispatcher, true );
channels.add( reliableAdapter );
if( fast != null ) {
fastAdapter = new KernelAdapter( this, fast, dispatcher, false );
channels.add( fastAdapter );
}
channels.add( reliableAdapter );
channels.add( fastAdapter );
}
public String getGameName()

Loading…
Cancel
Save