From b28f7e92931bf52a879fbe398b747f4f6888c690 Mon Sep 17 00:00:00 2001 From: Paul Speed Date: Sat, 16 Jan 2016 04:24:02 -0500 Subject: [PATCH] Removing a println I had for testing something else. Added some gating to the endpoint closure to try to delay some NPE I'm seeing caused be a race condition somewhere when client and server in the same VM and shutting down at the same time. --- .../main/java/com/jme3/network/base/KernelAdapter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jme3-networking/src/main/java/com/jme3/network/base/KernelAdapter.java b/jme3-networking/src/main/java/com/jme3/network/base/KernelAdapter.java index 70b360fa4..6d6fcef7b 100644 --- a/jme3-networking/src/main/java/com/jme3/network/base/KernelAdapter.java +++ b/jme3-networking/src/main/java/com/jme3/network/base/KernelAdapter.java @@ -122,10 +122,10 @@ public class KernelAdapter extends Thread // retrieve them. For now we'll just log it. FIXME log.log( Level.SEVERE, "Unhandled error, endpoint:" + p + ", context:" + context, e ); - //if( p.isConnected() ) - System.out.println("Is p connected:" + p.isConnected()); - // In lieu of other options, at least close the endpoint - p.close(); + if( p.isConnected() ) { + // In lieu of other options, at least close the endpoint + p.close(); + } } protected HostedConnection getConnection( Endpoint p )