Merge pull request #67858 from TechnoPorg/fix-upnp-docs

Fix Thread usage in UPNP docs.
This commit is contained in:
Max Hilbrunner 2022-10-25 14:22:23 +02:00 committed by GitHub
commit 9e509caa8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.