From 1b1d04675fd27a3b38b8ae7a028044aad8157b42 Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Wed, 7 Jun 2023 00:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/scripts/loadcheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/loadcheck.py b/.github/workflows/scripts/loadcheck.py index 857ba22605..4e6917add0 100644 --- a/.github/workflows/scripts/loadcheck.py +++ b/.github/workflows/scripts/loadcheck.py @@ -21,8 +21,10 @@ # let Modmail boot up time.sleep(10) +exit_code = 1 if proc.poll() else 0 + print("Stopping Modmail") proc.terminate() -sys.exit() +sys.exit(exit_code)