From 4c06237b9353ed47c72e827a25770518f167642a Mon Sep 17 00:00:00 2001 From: TechnoPorg Date: Mon, 24 Oct 2022 17:23:33 -0600 Subject: 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. --- modules/upnp/doc_classes/UPNP.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3