362614 NPE in accepting connection

This commit is contained in:
Jan Bartel 2011-11-02 12:01:31 +11:00
parent 971115a00a
commit 48cafe46a6
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class SelectChannelConnector extends AbstractNIOConnector
public void accept(int acceptorID) throws IOException
{
ServerSocketChannel server = _acceptChannel;
if (server!=null && server.isOpen())
if (server!=null && server.isOpen() && _manager.isStarted())
{
SocketChannel channel = _acceptChannel.accept();
channel.configureBlocking(false);