Skip to content

Commit

Permalink
[EDCD#2146] Cleanup On CtrlC Already Running
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Feb 8, 2024
1 parent 840dd54 commit bbd911c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion EDMarketConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,13 @@ def already_running_popup():
button = ttk.Button(frame, text='OK', command=lambda: sys.exit(0))
button.grid(row=2, column=0, sticky=tk.S)

root.mainloop()
try:
root.mainloop()
except KeyboardInterrupt:
logger.info("Ctrl+C Detected, Attempting Clean Shutdown")
sys.exit()
logger.info('Exiting')


journal_lock = JournalLock()

Check failure on line 364 in EDMarketConnector.py

View workflow job for this annotation

GitHub Actions / push_checks

E303 too many blank lines (2)
locked = journal_lock.obtain_lock()
Expand Down

0 comments on commit bbd911c

Please sign in to comment.