[#2221] Remove duplicated release of pools
This commit is contained in:
parent
8837857fae
commit
9a4f005e2a
@ -221,7 +221,8 @@ public class NioClientSocketChannelFactory implements ClientSocketChannelFactory
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
bossPool.shutdown();
|
||||
workerPool.shutdown();
|
||||
releasePools();
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ public class NioDatagramChannelFactory implements DatagramChannelFactory {
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
workerPool.shutdown();
|
||||
releasePool();
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,8 @@ public class NioServerSocketChannelFactory implements ServerSocketChannelFactory
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
bossPool.shutdown();
|
||||
workerPool.shutdown();
|
||||
releasePools();
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,6 @@ public class OioClientSocketChannelFactory implements ClientSocketChannelFactory
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
ExecutorUtil.shutdownNow(workerExecutor);
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,6 @@ public class OioDatagramChannelFactory implements DatagramChannelFactory {
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
ExecutorUtil.shutdownNow(workerExecutor);
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,6 @@ public class OioServerSocketChannelFactory implements ServerSocketChannelFactory
|
||||
}
|
||||
|
||||
public void releaseExternalResources() {
|
||||
shutdown();
|
||||
ExecutorUtil.shutdownNow(workerExecutor);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user