Issue #4537 - fix potential spin when discarding in WebSocketConnection
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
13458ab515
commit
20621b76fb
|
@ -497,7 +497,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
|
|||
case DISCARD:
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Discarded buffer - {}", BufferUtil.toDetailString(buffer));
|
||||
buffer.clear();
|
||||
BufferUtil.clear(buffer);
|
||||
break;
|
||||
|
||||
case SUSPEND:
|
||||
|
|
Loading…
Reference in New Issue