提交 8ca1a834 编写于 作者: M MRXLT

fix bug

上级 5b18f570
...@@ -116,10 +116,10 @@ class WebService(object): ...@@ -116,10 +116,10 @@ class WebService(object):
self.app_instance = app_instance self.app_instance = app_instance
def run_flask(self): def run_flask(self):
app_instance.run(host="0.0.0.0", self.app_instance.run(host="0.0.0.0",
port=self.port, port=self.port,
threaded=False, threaded=False,
processes=1) processes=1)
def get_app_instance(self): def get_app_instance(self):
return self.app_instance return self.app_instance
......
...@@ -166,10 +166,10 @@ class WebService(object): ...@@ -166,10 +166,10 @@ class WebService(object):
self.app_instance = app_instance self.app_instance = app_instance
def run_flask(self): def run_flask(self):
app_instance.run(host="0.0.0.0", self.app_instance.run(host="0.0.0.0",
port=self.port, port=self.port,
threaded=False, threaded=False,
processes=1) processes=1)
def get_app_instance(self): def get_app_instance(self):
return app_instance return app_instance
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册