set return value for profile option

Signed-off-by: Arthur Lu <learthurgo@gmail.com>

Former-commit-id: e15f87b2e5
This commit is contained in:
Arthur Lu 2021-10-14 19:45:28 +00:00
parent 26d9d962c0
commit a4a13c7cb5

View File

@ -317,7 +317,7 @@ def main(send, verbose = False, profile = False, debug = False):
send(stdout, INF, "finished all tasks in " + str(time.time() - loop_start) + " seconds, looping")
if profile:
return # return instead of break to avoid sys.exit
return 0 # return instead of break to avoid sys.exit
event_delay = config["variable"]["event-delay"]
if event_delay: