From 9f075077baa65a0fd89f42dcbb1d565c1508d5af Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 17 Apr 2019 22:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=B2=99=E9=9B=95=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebMain.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WebMain.py b/WebMain.py index b4336a0..df26d30 100644 --- a/WebMain.py +++ b/WebMain.py @@ -225,9 +225,10 @@ def SubThread(): t.start() -# p = threading.Thread(target=SubThread) -# p.setDaemon(True) -# p.start() +if not app.debug: + p = threading.Thread(target=SubThread) + p.setDaemon(True) + p.start() if __name__ == "__main__": app.run()