We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d75f118 commit 2f8efe1Copy full SHA for 2f8efe1
trio_websocket/_impl.py
@@ -145,8 +145,7 @@ async def open_connection(nursery: trio.Nursery) -> WebSocketConnection:
145
146
async def close_connection(connection: WebSocketConnection) -> None:
147
try:
148
- with trio.fail_after(disconnect_timeout) as cs:
149
- cs.shield = True
+ with trio.fail_after(disconnect_timeout):
150
await connection.aclose()
151
except trio.TooSlowError:
152
raise DisconnectionTimeout from None
0 commit comments