Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Apr 4, 2024
1 parent 8d5a3ab commit ea3bfb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradio/routes.py
Expand Up @@ -612,7 +612,7 @@ async def stop_stream():
# locally and in deployment we should use the event-based approach
if os.getenv("GRADIO_IS_E2E_TEST") and sys.version_info < (3, 9):
while app.get_blocks().is_running:
await asyncio.sleep(0.)
await asyncio.sleep(0.25)
return "stop"
else:
await app.stop_event.wait()
Expand Down

0 comments on commit ea3bfb6

Please sign in to comment.