tighten timings
This commit is contained in:
parent
c9983a72d6
commit
98d1dba256
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|
||||||
current_token = 0
|
current_token = 0
|
||||||
incomplete_token_buffer = bytearray()
|
incomplete_token_buffer = bytearray()
|
||||||
await asyncio.sleep(0.1) #anti race condition, prevent check from overtaking generate
|
await asyncio.sleep(0.05) #anti race condition, prevent check from overtaking generate
|
||||||
while True:
|
while True:
|
||||||
streamDone = handle.has_finished() #exit next loop on done
|
streamDone = handle.has_finished() #exit next loop on done
|
||||||
tokenStr = ""
|
tokenStr = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue