From 8aa05910eb5484a44737a2759eb5a60acc19673e Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Sat, 17 Oct 2020 16:54:56 +0200 Subject: [PATCH] Restore comment --- syncplay/players/python_mpv_jsonipc/python_mpv_jsonipc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syncplay/players/python_mpv_jsonipc/python_mpv_jsonipc.py b/syncplay/players/python_mpv_jsonipc/python_mpv_jsonipc.py index 8b7fe91..a6cbbad 100644 --- a/syncplay/players/python_mpv_jsonipc/python_mpv_jsonipc.py +++ b/syncplay/players/python_mpv_jsonipc/python_mpv_jsonipc.py @@ -487,6 +487,7 @@ class MPV: self.event_handler.put_task(self.key_bindings[args[1]]) def _start_mpv(self, ipc_socket, mpv_location, **kwargs): + # Attempt to start MPV 3 times. for i in range(3): try: self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs) @@ -689,6 +690,7 @@ class IINA(MPV): """The main IINA interface class. Use this to control the MPV player instantiated by IINA.""" def _start_mpv(self, ipc_socket, mpv_location, **kwargs): + # Attempt to start IINA 3 times. for i in range(3): try: self.mpv_process = IINAProcess(ipc_socket, mpv_location, **kwargs) @@ -697,4 +699,4 @@ class IINA(MPV): log.warning("IINA start failed.", exc_info=1) continue else: - raise MPVError("IINA process retry limit reached.") \ No newline at end of file + raise MPVError("IINA process retry limit reached.")