mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-22 23:17:26 -04:00
close socket manually
This commit is contained in:
parent
fc6bf939c0
commit
9dcb0fd3f2
3 changed files with 11 additions and 1 deletions
|
@ -63,3 +63,7 @@ func wrong_args_count(command: Command, right_count: int) -> bool:
|
|||
return true
|
||||
|
||||
return false
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
close()
|
||||
|
|
|
@ -45,3 +45,9 @@ func get_scaled_mouse_pos(position : Vector2) -> Vector2:
|
|||
position.x *= scale_width
|
||||
position.y *= scale_height
|
||||
return position
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
if input_sync != null:
|
||||
input_sync.close()
|
||||
input_sync = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue