tooltips touchupfix the problem where torrents disappear after an improper shutdown - andar

This commit is contained in:
Marcos Pinto 2007-06-08 01:48:12 +00:00
parent d4db41078b
commit a074ef17ce
1 changed files with 5 additions and 0 deletions

View File

@ -696,6 +696,11 @@ class Manager:
if no_space:
self.apply_queue()
# Pickle the state so if we experience a crash, the latest state is available
print "Pickling state..."
output = open(os.path.join(self.base_dir, STATE_FILENAME), 'wb')
pickle.dump(self.state, output)
output.close()
return ret