mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 22:23:07 +00:00
Add WebSocketMultiplayerPeer _incoming_packets check bound
This commit is contained in:
parent
66f696c2c1
commit
05ad08941b
@ -99,6 +99,8 @@ Error WebSocketMultiplayerPeer::get_packet(const uint8_t **r_buffer, int &r_buff
|
||||
_current_packet.data = nullptr;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(_incoming_packets.size() == 0, ERR_UNAVAILABLE);
|
||||
|
||||
_current_packet = _incoming_packets.front()->get();
|
||||
_incoming_packets.pop_front();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user