mirror of https://github.com/zulip/zulip.git
upgrade: Make calling shutdown_server twice, only try once.
This commit is contained in:
parent
a46f6df91e
commit
da5201b986
|
@ -116,6 +116,7 @@ IS_SERVER_UP = True
|
||||||
def shutdown_server() -> None:
|
def shutdown_server() -> None:
|
||||||
global IS_SERVER_UP
|
global IS_SERVER_UP
|
||||||
|
|
||||||
|
if IS_SERVER_UP:
|
||||||
logging.info("Stopping Zulip...")
|
logging.info("Stopping Zulip...")
|
||||||
subprocess.check_call(["./scripts/stop-server"], preexec_fn=su_to_zulip)
|
subprocess.check_call(["./scripts/stop-server"], preexec_fn=su_to_zulip)
|
||||||
IS_SERVER_UP = False
|
IS_SERVER_UP = False
|
||||||
|
|
Loading…
Reference in New Issue