close socket manually

This commit is contained in:
Nordup 2024-11-01 05:17:16 +04:00
parent fc6bf939c0
commit 9dcb0fd3f2
3 changed files with 11 additions and 1 deletions

View file

@ -63,3 +63,7 @@ func wrong_args_count(command: Command, right_count: int) -> bool:
return true
return false
func _exit_tree() -> void:
close()

View file

@ -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