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:
parent
714d0263fe
commit
71df4f9acd
@ -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…
x
Reference in New Issue
Block a user