SPDY: allow multiple notification of closeSessionFuture

This commit is contained in:
Jeff Pinner 2013-03-28 06:54:08 -07:00 committed by Norman Maurer
parent 5a7f049fe2
commit b4b0be4e53

View File

@ -792,7 +792,7 @@ public class SpdySessionHandler
spdySession.closeLocalSide(streamID); spdySession.closeLocalSide(streamID);
} }
if (closeSessionFuture != null && spdySession.noActiveStreams()) { if (closeSessionFuture != null && spdySession.noActiveStreams()) {
closeSessionFuture.setSuccess(); closeSessionFuture.trySuccess();
} }
} }
@ -802,7 +802,7 @@ public class SpdySessionHandler
} }
if (closeSessionFuture != null && spdySession.noActiveStreams()) { if (closeSessionFuture != null && spdySession.noActiveStreams()) {
closeSessionFuture.setSuccess(); closeSessionFuture.trySuccess();
} }
} }