SPDY: allow multiple notification of closeSessionFuture
This commit is contained in:
parent
5a7f049fe2
commit
b4b0be4e53
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user