Skip to content

Commit b79bc26

Browse files
committed
Set event loop in HTTPClient
1 parent ca611c0 commit b79bc26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord/http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def __init__(
175175
self.loop: asyncio.AbstractEventLoop = (
176176
asyncio.new_event_loop() if loop is None else loop
177177
)
178+
asyncio.set_event_loop(self.loop)
178179
self.connector = connector
179180
self.__session: aiohttp.ClientSession = MISSING # filled in static_login
180181
self._locks: weakref.WeakValueDictionary = weakref.WeakValueDictionary()

0 commit comments

Comments
 (0)