fix AttributeError when quitting before logging in

pull/4/head
Blake DeMarcy 2017-04-15 05:36:44 -05:00
parent dd90247d8c
commit 5f3421c525
1 changed files with 3 additions and 1 deletions

View File

@ -1404,7 +1404,9 @@ def frilly_exit():
and shit, or just say bye, depending on the user's bbjrc and shit, or just say bye, depending on the user's bbjrc
setting, `dramatic_exit` setting, `dramatic_exit`
""" """
app.loop.stop() # sometimes this gets called before the loop is set up properly
try: app.loop.stop()
except: pass
if app.prefs["dramatic_exit"]: if app.prefs["dramatic_exit"]:
width, height = app.loop.screen_size width, height = app.loop.screen_size
for x in range(height - 1): for x in range(height - 1):