1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 09:26:57 -05:00

Ensure spawn on Windows

This commit is contained in:
deathbybandaid 2020-11-09 14:31:05 -05:00
parent 50f724489e
commit b0e5de9d43

View File

@ -37,6 +37,10 @@ def run(settings, logger, db):
fhdhr = fHDHR_OBJ(settings, logger, db)
fhdhrweb = fHDHR_HTTP_Server(fhdhr)
# Ensure spawn on Windows instead of fork
if settings.dict["main"]["opersystem"] in ["Windows"]:
multiprocessing.set_start_method('spawn')
try:
print("HTTP Server Starting")