Skip to content

Commit 431c499

Browse files
author
Sebastian Molenda
committed
My bad
1 parent e83787a commit 431c499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pubnub/pubnub_asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PubNubAsyncio(PubNubCore):
4747

4848
def __init__(self, config, custom_event_loop=None, subscription_manager=None, *, custom_request_handler=None):
4949
super(PubNubAsyncio, self).__init__(config)
50-
self.event_loop = custom_event_loop or asyncio.new_event_loop()
50+
self.event_loop = custom_event_loop or asyncio.get_event_loop()
5151

5252
self._session = None
5353

@@ -632,7 +632,7 @@ async def wait_for_presence_on(self, *channel_names):
632632
class AsyncioTelemetryManager(TelemetryManager):
633633
def __init__(self):
634634
TelemetryManager.__init__(self)
635-
self.loop = asyncio.new_event_loop()
635+
self.loop = asyncio.get_event_loop()
636636
self._schedule_next_cleanup()
637637

638638
def _schedule_next_cleanup(self):

0 commit comments

Comments
 (0)