~naglis/aio_mpv_ipc

379b00f38fa53569623ecccecfa3350fa2623e97 — Naglis Jonaitis 1 year, 3 months ago 64f8389
Remove deprecated loop argument
1 files changed, 3 insertions(+), 3 deletions(-)

M aio_mpv_ipc/_client.py
M aio_mpv_ipc/_client.py => aio_mpv_ipc/_client.py +3 -3
@@ 49,7 49,7 @@ async def start_mpv(
        loop = asyncio.get_running_loop()

    mpv = await asyncio.create_subprocess_exec(
        mpv_path, "--input-ipc-server", socket_path, *mpv_args, loop=loop
        mpv_path, "--input-ipc-server", socket_path, *mpv_args
    )
    logger.debug("Started mpv process with PID: %d", mpv.pid)



@@ 108,7 108,7 @@ class MpvClient:
            attempt += 1
            try:
                self._reader, self._writer = await asyncio.open_unix_connection(
                    self._socket_path, loop=self._loop
                    self._socket_path
                )
                break
            except ConnectionRefusedError as exc:


@@ 119,7 119,7 @@ class MpvClient:
                    attempt,
                    self._connect_sleep_timeout,
                )
                await asyncio.sleep(self._connect_sleep_timeout, loop=self._loop)
                await asyncio.sleep(self._connect_sleep_timeout)

        self._poll_task = self._loop.create_task(self._poll())