Skip to content

Commit

Permalink
ctrl+c exit
Browse files Browse the repository at this point in the history
  • Loading branch information
JS00000 committed Apr 11, 2023
1 parent 15e6cf8 commit 68ef5aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def func(_signo, _stack_frame):
conf().save_user_datas()
if callable(old_handler): # check old_handler
return old_handler(_signo, _stack_frame)
sys.exit(0)
signal.signal(_signo, func)

def run():
Expand Down

0 comments on commit 68ef5aa

Please sign in to comment.