mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 01:55:15 +00:00
tooltips touchupfix the problem where torrents disappear after an improper shutdown - andar
This commit is contained in:
parent
d4db41078b
commit
a074ef17ce
@ -696,6 +696,11 @@ class Manager:
|
|||||||
|
|
||||||
if no_space:
|
if no_space:
|
||||||
self.apply_queue()
|
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
|
return ret
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user