Skip to content

Commit

Permalink
Set event loop in HTTPClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Revnoplex committed Oct 20, 2024
1 parent ca611c0 commit b79bc26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def __init__(
self.loop: asyncio.AbstractEventLoop = (
asyncio.new_event_loop() if loop is None else loop
)
asyncio.set_event_loop(self.loop)
self.connector = connector
self.__session: aiohttp.ClientSession = MISSING # filled in static_login
self._locks: weakref.WeakValueDictionary = weakref.WeakValueDictionary()
Expand Down

0 comments on commit b79bc26

Please sign in to comment.