Skip to content

Commit

Permalink
Fixes async dispatch regression on server (#6091)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 19, 2023
1 parent 5b89692 commit fbc1f24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/io/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ async def _dispatch_msgs(doc, msgs):
else:
futures = dispatch_django(conn, msg=msg)
await _run_write_futures(futures)
if not remaining:
return
await asyncio.sleep(0.01)
_dispatch_write_task(doc, _dispatch_msgs, doc, remaining)

#---------------------------------------------------------------------
Expand Down

0 comments on commit fbc1f24

Please sign in to comment.