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 a3197d0 commit 84d5d17Copy full SHA for 84d5d17
graphql_ws/base_async.py
@@ -159,7 +159,10 @@ async def on_close(self, connection_context):
159
for op_id in connection_context.operations
160
) + tuple(task.cancel() for task in connection_context.pending_tasks)
161
if awaitables:
162
- await asyncio.gather(*awaitables, loop=self.loop)
+ try:
163
+ await asyncio.gather(*awaitables, loop=self.loop)
164
+ except asyncio.CancelledError:
165
+ pass
166
167
async def on_stop(self, connection_context, op_id):
168
await self.unsubscribe(connection_context, op_id)
0 commit comments