Skip to content

Commit

Permalink
refactor: Replace deprecated get_event_loop with get_running_loop; #335
Browse files Browse the repository at this point in the history
  • Loading branch information
empicano committed Oct 19, 2024
1 parent b7ce404 commit 8eaff6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiomqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__( # noqa: C901, PLR0912, PLR0913, PLR0915
self._bind_port = bind_port
self._clean_start = clean_start
self._properties = properties
self._loop = asyncio.get_event_loop()
self._loop = asyncio.get_running_loop()

# Connection state
self._connected: asyncio.Future[None] = asyncio.Future()
Expand Down

0 comments on commit 8eaff6b

Please sign in to comment.