From b4b0be4e532a83802c6c192ee2aa8c836b12ea80 Mon Sep 17 00:00:00 2001 From: Jeff Pinner Date: Thu, 28 Mar 2013 06:54:08 -0700 Subject: [PATCH] SPDY: allow multiple notification of closeSessionFuture --- .../java/io/netty/handler/codec/spdy/SpdySessionHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }