mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-02 23:29:02 +01:00
Fix shutdown on server side.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
8d67d92993
commit
6ef370f2c9
@ -57,9 +57,11 @@ namespace
|
||||
do
|
||||
{
|
||||
n = ws.receiveFrame(pBuffer.get(), _bufSize, flags);
|
||||
if (n == 0)
|
||||
break;
|
||||
ws.sendFrame(pBuffer.get(), n, flags);
|
||||
}
|
||||
while (n > 0 || (flags & WebSocket::FRAME_OP_BITMASK) != WebSocket::FRAME_OP_CLOSE);
|
||||
while ((flags & WebSocket::FRAME_OP_BITMASK) != WebSocket::FRAME_OP_CLOSE);
|
||||
}
|
||||
catch (WebSocketException& exc)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user