Skip to content

Commit

Permalink
Merge pull request godotengine#95860 from Goutte/doc-upnp-update-to-l…
Browse files Browse the repository at this point in the history
…atest-gdscript

Docs: Update UPnP GDScript snippet to using `Signal.emit` syntax
  • Loading branch information
akien-mga committed Aug 26, 2024
2 parents 4a798ad + a014705 commit 8c0209f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/upnp/doc_classes/UPNP.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

if err != OK:
push_error(str(err))
emit_signal("upnp_completed", err)
upnp_completed.emit(err)
return

if upnp.get_gateway() and upnp.get_gateway().is_valid_gateway():
upnp.add_port_mapping(server_port, server_port, ProjectSettings.get_setting("application/config/name"), "UDP")
upnp.add_port_mapping(server_port, server_port, ProjectSettings.get_setting("application/config/name"), "TCP")
emit_signal("upnp_completed", OK)
upnp_completed.emit(OK)

func _ready():
thread = Thread.new()
Expand Down

0 comments on commit 8c0209f

Please sign in to comment.