Browse Source

Client will log the exception that causes it to disconnect
just in case the caller has not registered any listeners.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7525 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 years ago
parent
commit
71df4f9acd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      engine/src/networking/com/jme3/network/base/DefaultClient.java

+ 1 - 0
engine/src/networking/com/jme3/network/base/DefaultClient.java

@@ -323,6 +323,7 @@ public class DefaultClient implements Client
         // If there are no listeners then close the connection with
         // a reason
         if( errorListeners.isEmpty() ) {
+            log.log( Level.SEVERE, "Termining connection due to unhandled error", t );
             DisconnectInfo info = new DisconnectInfo();
             info.reason = "Connection Error";
             info.error = t;