You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-30 18:30:54 +00:00
Fix potential DAP crash at startup
Crash seen in the wild on Xogot with telemetry.
This commit is contained in:
committed by
Rémi Verschelde
parent
551ce8d47f
commit
27100c7d39
@@ -145,6 +145,7 @@ Error DebugAdapterProtocol::on_client_connected() {
|
||||
ERR_FAIL_COND_V_MSG(clients.size() >= DAP_MAX_CLIENTS, FAILED, "Max client limits reached");
|
||||
|
||||
Ref<StreamPeerTCP> tcp_peer = server->take_connection();
|
||||
ERR_FAIL_COND_V_MSG(tcp_peer.is_null(), FAILED, "Failed to take incoming DAP connection.");
|
||||
tcp_peer->set_no_delay(true);
|
||||
Ref<DAPeer> peer = memnew(DAPeer);
|
||||
peer->connection = tcp_peer;
|
||||
|
||||
Reference in New Issue
Block a user