Skip to content

Commit

Permalink
Stop p2p discovery once broadcast is discovered
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
britzl committed Aug 7, 2022
1 parent 7d028bf commit e831cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ build
.cproject
builtins
.internal
manifest.private.der
manifest.public.der
1 change: 1 addition & 0 deletions examples/discovery/discovery.gui_script
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function on_input(self, action_id, action)
print("Found server", ip, port)
local logo = gui.get_node("logo")
gui.animate(logo, gui.PROP_POSITION, gui.get_position(logo) + vmath.vector3(0, 100, 0), gui.EASING_INBOUNCE, 1, 0, nil, gui.PLAYBACK_LOOP_PINGPONG)
self.p2p.stop()
end)
end)
end

0 comments on commit e831cf2

Please sign in to comment.