Made sure that the number of selectors cannot be zero.

This commit is contained in:
Simone Bordet 2014-02-03 11:52:51 +01:00
parent 8cc9d71e20
commit 3f5a30282d
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class ServerConnector extends AbstractNetworkConnector
@Name("factories") ConnectionFactory... factories)
{
super(server,executor,scheduler,bufferPool,acceptors,factories);
_manager = new ServerConnectorManager(getExecutor(), getScheduler(), selectors >= 0 ? selectors : Runtime.getRuntime().availableProcessors());
_manager = new ServerConnectorManager(getExecutor(), getScheduler(), selectors > 0 ? selectors : Runtime.getRuntime().availableProcessors());
addBean(_manager, true);
}