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
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
thread = Thread.new()
|
thread = Thread.new()
|
||||||
thread.start(self, "_upnp_setup", SERVER_PORT)
|
thread.start(_upnp_setup.bind(SERVER_PORT))
|
||||||
|
|
||||||
func _exit_tree():
|
func _exit_tree():
|
||||||
# Wait for thread finish here to handle game exit while the thread is running.
|
# Wait for thread finish here to handle game exit while the thread is running.
|
||||||
|
|
Loading…
Reference in a new issue