feat(playout): remove unused liquidsoap restart function

This commit is contained in:
jo 2023-02-20 21:37:48 +01:00 committed by Kyle Robbertze
parent a0f232ba66
commit 0694c34ec0
1 changed files with 0 additions and 17 deletions

View File

@ -133,20 +133,3 @@ class LiquidsoapClient:
self._set_var("message_offline", self._quote(message_offline))
if input_fade_transition is not None:
self._set_var("input_fade_transition", input_fade_transition)
def restart(self):
logger.warning("restarting Liquidsoap")
try:
output = check_output(("pidof", "libretime-liquidsoap"))
liq_pid = output.strip().decode("utf-8")
logger.debug(f"found liquidsoap pid {liq_pid}")
run(("kill", "-9", liq_pid), check=True)
except CalledProcessError as exception:
raise LiquidsoapClientError("could not restart liquidsoap") from exception
# Wait for the previous process to shutdown.
sleep(1)
self.wait_for_version()