save configuration a little early, better timing on shutdown

This commit is contained in:
Daniel Pavel 2013-06-21 15:21:49 +02:00
parent c1aa341a7a
commit 8cd3b8fdef
1 changed files with 5 additions and 4 deletions

View File

@ -222,13 +222,14 @@ def stop_all():
_log.info("stopping %s", listeners)
for l in listeners:
if l:
l.stop()
for l in listeners:
l.join()
l.stop()
configuration.save()
if listeners:
for l in listeners:
l.join()
_status_callback = None
_error_callback = None