1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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.
This commit is contained in:
Fabio Alessandrelli
2019-07-08 19:14:31 +02:00
parent 56269e2db8
commit 3e305ea036

View File

@@ -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;
}