Restore comment

This commit is contained in:
Alberto Sottile 2020-10-17 16:54:56 +02:00
parent 9b5a87157c
commit 8aa05910eb

View File

@ -487,6 +487,7 @@ class MPV:
self.event_handler.put_task(self.key_bindings[args[1]]) self.event_handler.put_task(self.key_bindings[args[1]])
def _start_mpv(self, ipc_socket, mpv_location, **kwargs): def _start_mpv(self, ipc_socket, mpv_location, **kwargs):
# Attempt to start MPV 3 times.
for i in range(3): for i in range(3):
try: try:
self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs) 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.""" """The main IINA interface class. Use this to control the MPV player instantiated by IINA."""
def _start_mpv(self, ipc_socket, mpv_location, **kwargs): def _start_mpv(self, ipc_socket, mpv_location, **kwargs):
# Attempt to start IINA 3 times.
for i in range(3): for i in range(3):
try: try:
self.mpv_process = IINAProcess(ipc_socket, mpv_location, **kwargs) self.mpv_process = IINAProcess(ipc_socket, mpv_location, **kwargs)
@ -697,4 +699,4 @@ class IINA(MPV):
log.warning("IINA start failed.", exc_info=1) log.warning("IINA start failed.", exc_info=1)
continue continue
else: else:
raise MPVError("IINA process retry limit reached.") raise MPVError("IINA process retry limit reached.")