Simplify shutdown in app.py

This commit is contained in:
Florian Bruhin 2016-10-28 17:43:59 +02:00
parent d85cfcbc07
commit 4ad741d26d

View File

@ -646,10 +646,7 @@ class Quitter:
session_manager.save(sessions.default, last_window=last_window,
load_next_time=True)
deferrer = False
if prompt.prompt_queue.shutdown():
deferrer = True
if deferrer:
# If shutdown was called while we were asking a question, we're in
# a still sub-eventloop (which gets quit now) and not in the main
# one.