未验证 提交 2888a933 编写于 作者: B Bin Long 提交者: GitHub

Merge pull request #450 from ShenYuhan/ff_qa

fix serving-stop cannot recover right port number.
......@@ -222,6 +222,7 @@ class ServingCommand(BaseCommand):
def start_app_with_file(self):
port = self.args.config.get("port", 8866)
self.args.port = port
if ServingCommand.is_port_occupied("127.0.0.1", port) is True:
print("Port %s is occupied, please change it." % port)
return False
......@@ -240,6 +241,7 @@ class ServingCommand(BaseCommand):
def start_single_app_with_file(self):
port = self.args.config.get("port", 8866)
self.args.port = port
if ServingCommand.is_port_occupied("127.0.0.1", port) is True:
print("Port %s is occupied, please change it." % port)
return False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册