File tree 1 file changed +6
-2
lines changed
java/src/org/openqa/selenium/netty/server
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 27
27
import io .netty .handler .ssl .SslContext ;
28
28
import io .netty .handler .ssl .SslContextBuilder ;
29
29
import io .netty .handler .ssl .util .SelfSignedCertificate ;
30
+ import io .netty .util .concurrent .Future ;
30
31
import io .netty .util .internal .logging .InternalLoggerFactory ;
31
32
import io .netty .util .internal .logging .JdkLoggerFactory ;
32
33
import java .io .IOException ;
@@ -127,8 +128,11 @@ public URL getUrl() {
127
128
@ Override
128
129
public void stop () {
129
130
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 ();
132
136
133
137
channel .closeFuture ().sync ();
134
138
} catch (InterruptedException e ) {
You can’t perform that action at this time.
0 commit comments