Skip to content

Commit

Permalink
fix(tools.serve): resolve another coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Sep 9, 2024
1 parent ce64d3e commit 99a9c97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ include_package_data = True
install_requires =
trame-server>=3,<4
trame-client>=3,<4

# generic backend fixed for trame.tools.serve
wslink>=2.1.3

[semantic_release]
version_pattern = setup.cfg:version = (\d+\.\d+\.\d+)
2 changes: 1 addition & 1 deletion trame/tools/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def on_msg_from_server(binary, content):
async for msg in ws_network:
await connection.send(msg.type == aiohttp.WSMsgType.BINARY, msg)
finally:
connection.close()
await connection.close()
await app.server.stop()
await task

Expand Down

0 comments on commit 99a9c97

Please sign in to comment.