From 99a9c97826cedb6d43c9b4927bef036cf8ae519f Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Mon, 9 Sep 2024 12:00:37 -0600 Subject: [PATCH] fix(tools.serve): resolve another coroutine --- setup.cfg | 3 +++ trame/tools/serve.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 4599d69e..5fbc5a99 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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+) diff --git a/trame/tools/serve.py b/trame/tools/serve.py index 56d92681..ba7261d8 100644 --- a/trame/tools/serve.py +++ b/trame/tools/serve.py @@ -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