Updated SammiClient
Removed await get_tree().process_frame from tight loop
This commit is contained in:
parent
d6e60ff204
commit
482ae21121
1 changed files with 0 additions and 2 deletions
|
|
@ -112,7 +112,6 @@ func _read_response() -> void:
|
||||||
return
|
return
|
||||||
|
|
||||||
if buffer.size() < 4:
|
if buffer.size() < 4:
|
||||||
await get_tree().process_frame
|
|
||||||
client.poll()
|
client.poll()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
@ -122,7 +121,6 @@ func _read_response() -> void:
|
||||||
buffer = []
|
buffer = []
|
||||||
headers = data.replace("\r", "").rstrip("\n\n").split("\n")
|
headers = data.replace("\r", "").rstrip("\n\n").split("\n")
|
||||||
break
|
break
|
||||||
await get_tree().process_frame
|
|
||||||
client.poll()
|
client.poll()
|
||||||
|
|
||||||
if headers.size() == 0:
|
if headers.size() == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue