Skip to content

Commit

Permalink
My bad
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Feb 7, 2025
1 parent e83787a commit 431c499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubnub/pubnub_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PubNubAsyncio(PubNubCore):

def __init__(self, config, custom_event_loop=None, subscription_manager=None, *, custom_request_handler=None):
super(PubNubAsyncio, self).__init__(config)
self.event_loop = custom_event_loop or asyncio.new_event_loop()
self.event_loop = custom_event_loop or asyncio.get_event_loop()

self._session = None

Expand Down Expand Up @@ -632,7 +632,7 @@ async def wait_for_presence_on(self, *channel_names):
class AsyncioTelemetryManager(TelemetryManager):
def __init__(self):
TelemetryManager.__init__(self)
self.loop = asyncio.new_event_loop()
self.loop = asyncio.get_event_loop()
self._schedule_next_cleanup()

def _schedule_next_cleanup(self):
Expand Down

0 comments on commit 431c499

Please sign in to comment.