[#2221] Remove duplicated release of pools

This commit is contained in:
Norman Maurer 2014-02-11 15:22:51 +01:00
parent 8837857fae
commit 9a4f005e2a
6 changed files with 5 additions and 6 deletions

View File

@ -221,7 +221,8 @@ public class NioClientSocketChannelFactory implements ClientSocketChannelFactory
}
public void releaseExternalResources() {
shutdown();
bossPool.shutdown();
workerPool.shutdown();
releasePools();
}

View File

@ -215,7 +215,7 @@ public class NioDatagramChannelFactory implements DatagramChannelFactory {
}
public void releaseExternalResources() {
shutdown();
workerPool.shutdown();
releasePool();
}

View File

@ -214,7 +214,8 @@ public class NioServerSocketChannelFactory implements ServerSocketChannelFactory
}
public void releaseExternalResources() {
shutdown();
bossPool.shutdown();
workerPool.shutdown();
releasePools();
}

View File

@ -127,7 +127,6 @@ public class OioClientSocketChannelFactory implements ClientSocketChannelFactory
}
public void releaseExternalResources() {
shutdown();
ExecutorUtil.shutdownNow(workerExecutor);
}
}

View File

@ -126,7 +126,6 @@ public class OioDatagramChannelFactory implements DatagramChannelFactory {
}
public void releaseExternalResources() {
shutdown();
ExecutorUtil.shutdownNow(workerExecutor);
}
}

View File

@ -150,7 +150,6 @@ public class OioServerSocketChannelFactory implements ServerSocketChannelFactory
}
public void releaseExternalResources() {
shutdown();
ExecutorUtil.shutdownNow(workerExecutor);
}
}