فهرست منبع

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

Fix Thread usage in UPNP docs.
Max Hilbrunner 3 سال پیش
والد
کامیت
9e509caa8b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/upnp/doc_classes/UPNP.xml

+ 1 - 1
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.