summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-03-16 11:58:47 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-03-16 11:58:47 +0100
commitad04d32b485700fa4bff3f1be1bf0440e99a1193 (patch)
treeff4c34d964617e0fb2c8793a80462467100a7ea4 /src
parentc71dac0fdd543a04f032547babd6ccde6a201b1a (diff)
downloadpoezio-ad04d32b485700fa4bff3f1be1bf0440e99a1193.tar.gz
poezio-ad04d32b485700fa4bff3f1be1bf0440e99a1193.tar.bz2
poezio-ad04d32b485700fa4bff3f1be1bf0440e99a1193.tar.xz
poezio-ad04d32b485700fa4bff3f1be1bf0440e99a1193.zip
On /exit, save the config earlier.
Diffstat (limited to 'src')
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index ff982ae7..1eda5eb6 100644
--- a/src/core.py
+++ b/src/core.py
@@ -614,7 +614,6 @@ class Core(object):
parts of the client (for example, set the MucTabs as not joined, etc)
"""
msg = msg or ''
- self.save_config()
self.xmpp.disconnect()
if reconnect:
self.xmpp.start()
@@ -2321,6 +2320,7 @@ class Core(object):
self.xmpp.plugin['xep_0108'].stop(block=False)
if config.get('enable_user_gaming', 'true') != 'false':
self.xmpp.plugin['xep_0196'].stop(block=False)
+ self.save_config()
self.plugin_manager.disable_plugins()
self.disconnect(msg)
self.running = False