File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ var _enet_peer: ENetMultiplayerPeer = ENetMultiplayerPeer.new()
4141
4242# UDP proxy
4343var _proxy_thread : Thread
44+ var _proxy_loop_enabled := true
4445var _udp_proxy_server : PacketPeerUDP
4546var _udp_proxy_port : int
4647var _rng_packet_loss : RandomNumberGenerator = RandomNumberGenerator .new ()
@@ -138,7 +139,7 @@ func _process_packets() -> void:
138139 _process_server_to_client_queue (send_threshold )
139140
140141func _process_loop ():
141- while true :
142+ while _proxy_loop_enabled :
142143 _process_packets ()
143144 OS .delay_msec (1 )
144145
@@ -233,4 +234,5 @@ func _should_send_packet() -> bool:
233234
234235func _exit_tree () -> void :
235236 if _proxy_thread and _proxy_thread .is_started ():
237+ _proxy_loop_enabled = false
236238 _proxy_thread .wait_to_finish ()
Original file line number Diff line number Diff line change 33name =" netfox.extras"
44description =" Game-specific utilities for Netfox"
55author =" Tamas Galffy and contributors"
6- version =" 1.33.1 "
6+ version =" 1.33.2 "
77script =" netfox-extras.gd"
Original file line number Diff line number Diff line change 33name =" netfox.internals"
44description =" Shared internals for netfox addons"
55author =" Tamas Galffy and contributors"
6- version =" 1.33.1 "
6+ version =" 1.33.2 "
77script =" plugin.gd"
Original file line number Diff line number Diff line change 33name =" netfox.noray"
44description =" Bulletproof your connectivity with noray integration for netfox"
55author =" Tamas Galffy and contributors"
6- version =" 1.33.1 "
6+ version =" 1.33.2 "
77script =" netfox-noray.gd"
Original file line number Diff line number Diff line change 33name =" netfox"
44description =" Shared internals for netfox addons"
55author =" Tamas Galffy and contributors"
6- version =" 1.33.1 "
6+ version =" 1.33.2 "
77script =" netfox.gd"
You can’t perform that action at this time.
0 commit comments