On some platforms the selector will not automatically wake up

when the network connection has been closed.  Forcing the selector
to wake up seems to be safe on tested platforms.
Thanks to @philotomy for the catch and fix.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
PSp..om 2011-11-14 10:51:25 +00:00
parent f9a798c651
commit 7a333dda9f

View File

@ -265,6 +265,9 @@ public class SelectorKernel extends AbstractKernel
// Make sure the channel is closed
serverChannel.close();
// Force the selector to stop blocking
wakeupSelector();
// And wait for it
join();
}