set return value for profile option

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2021-10-14 19:45:28 +00:00
parent 9b614af85c
commit e15f87b2e5

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: