mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fixes LSP connection error when launched in a separate thread
This commit is contained in:
parent
90f90cbcb0
commit
a5710d468b
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ void GDScriptLanguageServer::_notification(int p_what) {
|
|||
}
|
||||
|
||||
void GDScriptLanguageServer::thread_main(void *p_userdata) {
|
||||
set_current_thread_safe_for_nodes(true);
|
||||
GDScriptLanguageServer *self = static_cast<GDScriptLanguageServer *>(p_userdata);
|
||||
while (self->thread_running) {
|
||||
// Poll 20 times per second
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue