Add missing calls to childGroup().shutdownGraceFully()

Motivation:

The ServerBootrap's child group would not be shutdown.

Modification:

Add missing shutdownGracefully() call.

Result:

The child group is shutdown correctly.
This commit is contained in:
Jakob Buchgraber 2014-09-09 22:17:12 +02:00 committed by Trustin Lee
parent d022ac1016
commit 3dba1ef8dd
5 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public class DelegatingHttp2HttpConnectionHandlerTest {
public void teardown() throws Exception {
serverChannel.close().sync();
sb.group().shutdownGracefully();
sb.childGroup().shutdownGracefully();
cb.group().shutdownGracefully();
}

View File

@ -120,6 +120,7 @@ public class Http2ConnectionRoundtripTest {
public void teardown() throws Exception {
serverChannel.close().sync();
sb.group().shutdownGracefully();
sb.childGroup().shutdownGracefully();
cb.group().shutdownGracefully();
}

View File

@ -109,6 +109,7 @@ public class Http2FrameRoundtripTest {
public void teardown() throws Exception {
serverChannel.close().sync();
sb.group().shutdownGracefully();
sb.childGroup().shutdownGracefully();
cb.group().shutdownGracefully();
}

View File

@ -144,6 +144,7 @@ public class InboundHttp2ToHttpAdapterTest {
public void teardown() throws Exception {
serverChannel.close().sync();
sb.group().shutdownGracefully();
sb.childGroup().shutdownGracefully();
cb.group().shutdownGracefully();
clientDelegator = null;
serverDelegator = null;

View File

@ -103,6 +103,7 @@ public class JettySslEngineTest {
if (serverChannel != null) {
serverChannel.close().sync();
sb.group().shutdownGracefully();
sb.childGroup().shutdownGracefully();
cb.group().shutdownGracefully();
}
clientChannel = null;