From 997fe300871f564b51f705f7c76dae6427b704a0 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Wed, 28 Aug 2019 17:41:16 +0100 Subject: Handle synapse start correctly --- synapse_topology/server/server.py | 1 - synapse_topology/webui/src/js/actions/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'synapse_topology') diff --git a/synapse_topology/server/server.py b/synapse_topology/server/server.py index 4d7be1e81f..b3f5dbaf8b 100644 --- a/synapse_topology/server/server.py +++ b/synapse_topology/server/server.py @@ -93,7 +93,6 @@ class Server: def start_synapse(self, request): print("Starting synapse") subprocess.check_output(["synctl", "start", self.model.config_dir]) - sys.exit() @app.route("/favicon.ico") def noop(self, request): diff --git a/synapse_topology/webui/src/js/actions/index.js b/synapse_topology/webui/src/js/actions/index.js index 32d38ebc19..7aa69df9f5 100644 --- a/synapse_topology/webui/src/js/actions/index.js +++ b/synapse_topology/webui/src/js/actions/index.js @@ -291,7 +291,7 @@ export const writeConfig = (callback) => { .then( res => startSynapse().then( res => { - if (Response.ok) { + if (res.ok) { dispatch(advanceUI()); callback(); -- cgit 1.5.1