Skip to content

Commit ddfdbef

Browse files
committed
Bring missing asyncio.create_task back to fix the deprecation warning.
1 parent 3cb124b commit ddfdbef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

channels_graphql_ws/graphql_ws_consumer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ async def disconnect(self, code):
275275

276276
# Unsubscribe from the Channels groups.
277277
waitlist += [
278-
self._channel_layer.group_discard(group, self.channel_name)
278+
asyncio.create_task(
279+
self._channel_layer.group_discard(group, self.channel_name)
280+
)
279281
for group in self._sids_by_group
280282
]
281283

0 commit comments

Comments
 (0)