File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java/src/org/openqa/selenium/netty/server Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727import io .netty .handler .ssl .SslContext ;
2828import io .netty .handler .ssl .SslContextBuilder ;
2929import io .netty .handler .ssl .util .SelfSignedCertificate ;
30+ import io .netty .util .concurrent .Future ;
3031import io .netty .util .internal .logging .InternalLoggerFactory ;
3132import io .netty .util .internal .logging .JdkLoggerFactory ;
3233import java .io .IOException ;
@@ -127,8 +128,11 @@ public URL getUrl() {
127128 @ Override
128129 public void stop () {
129130 try {
130- bossGroup .shutdownGracefully ().sync ();
131- workerGroup .shutdownGracefully ().sync ();
131+ Future <?> bossShutdown = bossGroup .shutdownGracefully ();
132+ Future <?> workerShutdown = workerGroup .shutdownGracefully ();
133+
134+ bossShutdown .sync ();
135+ workerShutdown .sync ();
132136
133137 channel .closeFuture ().sync ();
134138 } catch (InterruptedException e ) {
You can’t perform that action at this time.
0 commit comments