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
This commit is contained in:
PSp..om 2011-05-25 20:33:59 +00:00
parent 714d0263fe
commit 71df4f9acd

View File

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