mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Fix AutoShardedClient to work with the new asyncio loop machinery
Fix #7675
This commit is contained in:
@@ -546,6 +546,7 @@ class HTTPClient:
|
||||
# Necessary to get aiohttp to stop complaining about session creation
|
||||
if self.connector is MISSING:
|
||||
self.connector = aiohttp.TCPConnector(loop=self.loop, limit=0)
|
||||
|
||||
self.__session = aiohttp.ClientSession(
|
||||
connector=self.connector, ws_response_class=DiscordClientWebSocketResponse, loop=self.loop
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user