瀏覽代碼

Pass no-heartbeat to daemon processes

Cammy 6 年之前
父節點
當前提交
a76e6f8291
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      pyinstalive/dlfuncs.py

+ 7 - 3
pyinstalive/dlfuncs.py

@@ -405,9 +405,13 @@ def iterate_users(user_list):
                     "If this is not the case, manually delete the file '{:s}' and try again.".format(user + '.lock'))
             else:
                 logger.info("Launching daemon process for '{:s}'.".format(user))
-                start_result = helpers.run_command("pyinstalive -d {:s} -cp '{:s}' -dp '{:s}' {:s} {:s}".format(
-                    user, pil.config_path, pil.dl_path,
-                    '--no-lives' if not pil.dl_lives else '', '--no-replays' if not pil.dl_replays else ''))
+                start_result = helpers.run_command("pyinstalive -d {:s} -cp '{:s}' -dp '{:s}' {:s} {:s} {:s}".format(
+                    user,
+                    pil.config_path,
+                    pil.dl_path,
+                    '--no-lives' if not pil.dl_lives else '',
+                    '--no-replays' if not pil.dl_replays else '',
+                    '--no-heartbeat' if not pil.do_heartbeat else ''))
                 if start_result:
                     logger.warn("Could not start process: {:s}".format(str(start_result)))
                 else: