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.
This commit is contained in:
TechnoPorg 2022-10-24 17:23:33 -06:00
parent a8c805be29
commit 4c06237b93
1 changed files with 1 additions and 1 deletions

View File

@ -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.