You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user