mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
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:
parent
a8c805be29
commit
4c06237b93
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user