Skip to content

Commit

Permalink
Fixes #3 by exiting right after NCurses processes terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestaylr committed Oct 1, 2015
1 parent 5cc0662 commit 33bec07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/autonomous.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def main():
# Join the threads into the main threads
data_thread.join()
logic_thread.join()
modules.utils.shutdown_terminal()

# Terminate the program
logger.critical('Autonomous gracefully exited!')

# Keep the terminal shutdown at the end; logging after this causes NCurses mode to switch back on
modules.utils.shutdown_terminal()
sys.exit()

if __name__ == '__main__':
Expand Down

0 comments on commit 33bec07

Please sign in to comment.