summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2008-02-10 05:57:54 +0000
committerAndrew Resch <andrewresch@gmail.com>2008-02-10 05:57:54 +0000
commit587d5afda052e7aab20c194a59b298e765ec5849 (patch)
tree87e2f39dcd4340eadec2944dfe33dd3ca940a4bc
parent883ce6da4a2dea30b19b52cd4116f7658165f409 (diff)
downloaddeluge-587d5afda052e7aab20c194a59b298e765ec5849.tar.gz
deluge-587d5afda052e7aab20c194a59b298e765ec5849.tar.bz2
deluge-587d5afda052e7aab20c194a59b298e765ec5849.zip
Update upload_memory prior to saving state on shutdown.
-rw-r--r--src/core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py
index 4ab6652f1..0d7a4f3f6 100644
--- a/src/core.py
+++ b/src/core.py
@@ -318,6 +318,10 @@ class Manager:
pass
def quit(self):
+ # save upload memory
+ print "Saving uploaded memory..."
+ self.save_upmem()
+
# Pickle the state
self.pickle_state()
@@ -335,10 +339,6 @@ class Manager:
print "Saving fastresume data..."
self.save_fastresume_data()
- # save upload memory
- print "Saving uploaded memory..."
- self.save_upmem()
-
# Shutdown torrent core
print "Quitting the core..."
deluge_core.quit()