It saves config for the logged sessions in the exit function

This commit is contained in:
Manuel Cortez 2015-03-09 13:53:47 -06:00
parent 2cc865b62c
commit e1b3a94b13

View File

@ -442,7 +442,7 @@ class Controller(object):
log.debug("Saving global configuration...") log.debug("Saving global configuration...")
config.app.write() config.app.write()
for item in session_.sessions: for item in session_.sessions:
if session_.sessions[item]: continue if session_.sessions[item].logged == False: continue
log.debug("Saving config for %s session" % (session_.sessions[item].session_id,)) log.debug("Saving config for %s session" % (session_.sessions[item].session_id,))
session_.sessions[item].settings.write() session_.sessions[item].settings.write()
log.debug("Disconnecting streams for %s session" % (session_.sessions[item].session_id,)) log.debug("Disconnecting streams for %s session" % (session_.sessions[item].session_id,))