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 true
return false 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.x *= scale_width
position.y *= scale_height position.y *= scale_height
return position return position
func _exit_tree() -> void:
if input_sync != null:
input_sync.close()
input_sync = null

2
godot

@ -1 +1 @@
Subproject commit 36cbe3cb18c96a196032159b4d2ec4993d7c9479 Subproject commit a3171b5f2fd2df41d3476b76b65942ad32e0b2e1