mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Poll LSP/DAP clients for connection status updates
This commit is contained in:
parent
cfab3d2f57
commit
4be4eeea3a
2 changed files with 2 additions and 0 deletions
|
@ -237,6 +237,7 @@ void GDScriptLanguageProtocol::poll() {
|
|||
HashMap<int, Ref<LSPeer>>::Iterator E = clients.begin();
|
||||
while (E != clients.end()) {
|
||||
Ref<LSPeer> peer = E->value;
|
||||
peer->connection->poll();
|
||||
StreamPeerTCP::Status status = peer->connection->get_status();
|
||||
if (status == StreamPeerTCP::STATUS_NONE || status == StreamPeerTCP::STATUS_ERROR) {
|
||||
on_client_disconnected(E->key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue