Просмотр исходного кода

Until I can hook up proper error handlers, at least close
the connection so the clients don't hang around in an errored
state.


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

PSp..om 14 лет назад
Родитель
Сommit
010b9e0670
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      engine/src/networking/com/jme3/network/base/KernelAdapter.java

+ 3 - 0
engine/src/networking/com/jme3/network/base/KernelAdapter.java

@@ -120,6 +120,9 @@ public class KernelAdapter extends Thread
         // Should really be queued up so the outer thread can
         // retrieve them.  For now we'll just log it.  FIXME
         log.log( Level.SEVERE, "Unhandled error, endpoint:" + p + ", context:" + context, e );
+        
+        // In lieu of other options, at least close the endpoint
+        p.close();
     }                                                      
 
     protected HostedConnection getConnection( Endpoint p )