Issue #7086 - Demand should not throw if the WebSocket session is closed.
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
370db7ad34
commit
6b6452a519
|
@ -422,10 +422,6 @@ public class WebSocketCoreSession implements IncomingFrames, CoreSession, Dumpab
|
||||||
{
|
{
|
||||||
if (!demanding)
|
if (!demanding)
|
||||||
throw new IllegalStateException("FrameHandler is not demanding: " + this);
|
throw new IllegalStateException("FrameHandler is not demanding: " + this);
|
||||||
|
|
||||||
if (!sessionState.isInputOpen())
|
|
||||||
throw new IllegalStateException("FrameHandler input not open: " + this);
|
|
||||||
|
|
||||||
connection.demand(n);
|
connection.demand(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue