- added a fix so the app close is now clean, with exit code 0 as set

This commit is contained in:
Marius Stanciu
2020-05-07 00:46:02 +03:00
committed by Marius
parent a161354c25
commit 4ece23c456
5 changed files with 21 additions and 42 deletions

View File

@@ -186,8 +186,7 @@ def restart_program(app, ask=None):
# try to quit the Socket opened by ArgsThread class
try:
app.new_launch.thread_exit = True
app.new_launch.listener.close()
app.new_launch.stop.emit()
except Exception as err:
log.debug("FlatCAMTranslation.restart_program() --> %s" % str(err))