summaryrefslogtreecommitdiff
path: root/modules/websocket/editor_debugger_server_websocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/websocket/editor_debugger_server_websocket.cpp')
-rw-r--r--modules/websocket/editor_debugger_server_websocket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/websocket/editor_debugger_server_websocket.cpp b/modules/websocket/editor_debugger_server_websocket.cpp
index 66f3dac907..95ea7ceafa 100644
--- a/modules/websocket/editor_debugger_server_websocket.cpp
+++ b/modules/websocket/editor_debugger_server_websocket.cpp
@@ -39,8 +39,9 @@ void EditorDebuggerServerWebSocket::_peer_connected(int p_id, String _protocol)
}
void EditorDebuggerServerWebSocket::_peer_disconnected(int p_id, bool p_was_clean) {
- if (pending_peers.find(p_id))
+ if (pending_peers.find(p_id)) {
pending_peers.erase(p_id);
+ }
}
void EditorDebuggerServerWebSocket::poll() {