Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
commit
ef1fa40790
|
@ -148,14 +148,14 @@ public abstract class SelectorManager extends ContainerLifeCycle implements Dump
|
||||||
public int getTotalKeys()
|
public int getTotalKeys()
|
||||||
{
|
{
|
||||||
int keys = 0;
|
int keys = 0;
|
||||||
for (final ManagedSelector selector : _selectors)
|
for (ManagedSelector selector : _selectors)
|
||||||
{
|
{
|
||||||
keys += selector.getTotalKeys();
|
if (selector != null)
|
||||||
|
keys += selector.getTotalKeys();
|
||||||
}
|
}
|
||||||
return keys;
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the number of selectors in use
|
* @return the number of selectors in use
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue