diff options
author | TechnoPorg <jonah.janzen@gmail.com> | 2022-10-24 17:23:33 -0600 |
---|---|---|
committer | TechnoPorg <jonah.janzen@gmail.com> | 2022-10-24 17:23:33 -0600 |
commit | 4c06237b9353ed47c72e827a25770518f167642a (patch) | |
tree | 16311738cc68f842d16c031a2a31450780d7ebf7 | |
parent | a8c805be2947b211ee8b881d7a8bab7cdc86e170 (diff) |
Fix Thread usage in UPNP docs.
The threading API has changed between Godot 3 and Godot 4.
See https://github.com/godotengine/godot-proposals/issues/4691.
-rw-r--r-- | modules/upnp/doc_classes/UPNP.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upnp/doc_classes/UPNP.xml b/modules/upnp/doc_classes/UPNP.xml index 4888dca822..d4054948f6 100644 --- a/modules/upnp/doc_classes/UPNP.xml +++ b/modules/upnp/doc_classes/UPNP.xml @@ -41,7 +41,7 @@ func _ready(): thread = Thread.new() - thread.start(self, "_upnp_setup", SERVER_PORT) + thread.start(_upnp_setup.bind(SERVER_PORT)) func _exit_tree(): # Wait for thread finish here to handle game exit while the thread is running. |