diff --git a/codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java b/codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java index 7c88252492..af505517f6 100644 --- a/codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java +++ b/codec-http2/src/test/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapterTest.java @@ -699,7 +699,7 @@ public class InboundHttp2ToHttpAdapterTest { private final class HttpResponseDelegator extends SimpleChannelInboundHandler { private final HttpResponseListener listener; - private CountDownLatch latch; + private volatile CountDownLatch latch; public HttpResponseDelegator(HttpResponseListener listener, CountDownLatch latch) { super(false);