Release the resources of the BossWorkerPool. See #328
This commit is contained in:
parent
ba4736f33b
commit
10cd871df7
@ -194,9 +194,13 @@ public class NioServerSocketChannelFactory implements ServerSocketChannelFactory
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void releaseExternalResources() {
|
public void releaseExternalResources() {
|
||||||
|
if (bossWorkerPool instanceof ExternalResourceReleasable) {
|
||||||
|
((ExternalResourceReleasable) bossWorkerPool).releaseExternalResources();
|
||||||
|
}
|
||||||
if (workerPool instanceof ExternalResourceReleasable) {
|
if (workerPool instanceof ExternalResourceReleasable) {
|
||||||
((ExternalResourceReleasable) workerPool).releaseExternalResources();
|
((ExternalResourceReleasable) workerPool).releaseExternalResources();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user