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
3.0
PSp..om 14 years ago
parent 714d0263fe
commit 71df4f9acd
  1. 1
      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;

Loading…
Cancel
Save