summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-07-08 19:14:31 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-07-08 19:24:27 +0200
commit3e305ea036eaebd7de4747ba5abbbaabd2cdb699 (patch)
tree987981de7488addc16772d2300f8358a51a36658
parent56269e2db835e50a4cf2681bb73c44ae41fcca10 (diff)
Fix WebSocketClient consuming data during hanshake
Was missing a break of the while loop on connection. This potentially caused early data frames to be trashed.
-rw-r--r--modules/websocket/wsl_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/websocket/wsl_client.cpp b/modules/websocket/wsl_client.cpp
index b2d865a58f..86374e8f80 100644
--- a/modules/websocket/wsl_client.cpp
+++ b/modules/websocket/wsl_client.cpp
@@ -92,6 +92,7 @@ void WSLClient::_do_handshake() {
data->id = 1;
_peer->make_context(data, _in_buf_size, _in_pkt_size, _out_buf_size, _out_pkt_size);
_on_connect(protocol);
+ break;
}
_resp_pos += 1;
}