Issue #9682 - changes from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
a0fe47e1e8
commit
0fd8bd2b2f
|
@ -294,14 +294,14 @@ public class JettyWebSocketFrameHandler implements FrameHandler
|
|||
this.delayedCallback = null;
|
||||
}
|
||||
|
||||
CloseException closeException = new CloseException(closeStatus.getCode(), closeStatus.getCause());
|
||||
if (delayedCallback != null)
|
||||
delayedCallback.failed(new CloseException(closeStatus.getCode(), closeStatus.getCause()));
|
||||
delayedCallback.failed(closeException);
|
||||
|
||||
if (activeMessageSink != null)
|
||||
{
|
||||
activeMessageSink.fail(new CloseException(closeStatus.getCode(), closeStatus.getCause()));
|
||||
activeMessageSink = null;
|
||||
}
|
||||
if (textSink != null)
|
||||
textSink.fail(closeException);
|
||||
if (binarySink != null)
|
||||
binarySink.fail(closeException);
|
||||
|
||||
notifyOnClose(closeStatus, callback);
|
||||
container.notifySessionListeners((listener) -> listener.onWebSocketSessionClosed(session));
|
||||
|
|
Loading…
Reference in New Issue