thecollabagepatch commited on
Commit
9f21d72
·
1 Parent(s): 4130d86

realtime mode queue increase

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1689,7 +1689,7 @@ async def ws_jam(websocket: WebSocket):
1689
  if getattr(websocket, "_pace", "asap") == "realtime":
1690
  t1 = time.perf_counter()
1691
  target_next += chunk_secs
1692
- sleep_s = max(0.0, target_next - t1 - 0.02)
1693
  if sleep_s > 0:
1694
  await asyncio.sleep(sleep_s)
1695
  except asyncio.CancelledError:
 
1689
  if getattr(websocket, "_pace", "asap") == "realtime":
1690
  t1 = time.perf_counter()
1691
  target_next += chunk_secs
1692
+ sleep_s = max(0.0, target_next - t1 - 0.03)
1693
  if sleep_s > 0:
1694
  await asyncio.sleep(sleep_s)
1695
  except asyncio.CancelledError: