Release the resources of the BossWorkerPool. See #328

This commit is contained in:
norman 2012-05-21 11:48:52 +02:00
parent ba4736f33b
commit 10cd871df7

View File

@ -194,9 +194,13 @@ public class NioServerSocketChannelFactory implements ServerSocketChannelFactory
@Override
public void releaseExternalResources() {
if (bossWorkerPool instanceof ExternalResourceReleasable) {
((ExternalResourceReleasable) bossWorkerPool).releaseExternalResources();
}
if (workerPool instanceof ExternalResourceReleasable) {
((ExternalResourceReleasable) workerPool).releaseExternalResources();
}
}
}