fix thread cleanup

This commit is contained in:
Nordup 2024-11-03 04:57:10 +04:00
parent ccd53012f5
commit 82469c6502
2 changed files with 5 additions and 5 deletions

View file

@ -87,10 +87,10 @@ func store_buffer(buffer: PackedByteArray) -> void:
func cleanup() -> void:
pipe["stdio"].close()
pipe["stderr"].close()
if thread1 != null: thread1.wait_to_finish()
if thread2 != null: thread2.wait_to_finish()
if pipe.has("stdio"): pipe["stdio"].close()
if pipe.has("stderr"): pipe["stderr"].close()
if thread1 != null and thread1.is_started(): thread1.wait_to_finish()
if thread2 != null and thread2.is_started(): thread2.wait_to_finish()
# FLUSH AND SEND LOGS

2
godot

@ -1 +1 @@
Subproject commit 2a33640b1ecc3db0a096371ada661260fcc0a7e1
Subproject commit 252a23ed785801804bc0e91ca7b9bb5f11354df5