diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java index 2459465438..30de843ff8 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java @@ -792,7 +792,7 @@ public class SpdySessionHandler spdySession.closeLocalSide(streamID); } if (closeSessionFuture != null && spdySession.noActiveStreams()) { - closeSessionFuture.setSuccess(); + closeSessionFuture.trySuccess(); } } @@ -802,7 +802,7 @@ public class SpdySessionHandler } if (closeSessionFuture != null && spdySession.noActiveStreams()) { - closeSessionFuture.setSuccess(); + closeSessionFuture.trySuccess(); } }