1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-07 18:22:46 -05:00

Compare commits

..

No commits in common. "db49d28de5ebcf2b530a64046b3ab6e65be5ccfb" and "4efdded7e18f096a684eec5489500b3dfc9e9a80" have entirely different histories.

View File

@ -1,7 +1,6 @@
import os import os
import sys import sys
import argparse import argparse
import time
from fHDHR import fHDHR_VERSION, fHDHR_OBJ from fHDHR import fHDHR_VERSION, fHDHR_OBJ
import fHDHR.exceptions import fHDHR.exceptions
@ -52,9 +51,8 @@ def run(settings, logger, db, script_dir, fHDHR_web, origin, alternative_epg):
fhdhr.api.get("/api/startup_tasks") fhdhr.api.get("/api/startup_tasks")
# wait forever # wait forever
restart_code = "restart"
while fhdhr.threads["flask"].is_alive(): while fhdhr.threads["flask"].is_alive():
time.sleep(1) restart_code = "restart"
return restart_code return restart_code
except KeyboardInterrupt: except KeyboardInterrupt: