diff --git a/thingsdb/client/client.py b/thingsdb/client/client.py index ef1189a..63b69d3 100644 --- a/thingsdb/client/client.py +++ b/thingsdb/client/client.py @@ -44,7 +44,7 @@ def __init__( used. Defaults to `None`. """ - self._loop = loop if loop else asyncio.get_event_loop() + self._loop = loop if loop else asyncio.get_running_loop() self._auth = None self._pool = None self._protocol = None