mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-28 20:25:10 +00:00
Delete .fastresume on resume of a non-seeding torrent.
This commit is contained in:
parent
f2065ae344
commit
54b512a7e0
@ -352,9 +352,13 @@ class Torrent:
|
|||||||
|
|
||||||
if self.handle.is_seed():
|
if self.handle.is_seed():
|
||||||
self.state = "Seeding"
|
self.state = "Seeding"
|
||||||
|
# Only delete the .fastresume file if we're still downloading stuff
|
||||||
|
self.delete_fastresume()
|
||||||
else:
|
else:
|
||||||
self.state = "Downloading"
|
self.state = "Downloading"
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
def move_storage(self, dest):
|
def move_storage(self, dest):
|
||||||
"""Move a torrent's storage location"""
|
"""Move a torrent's storage location"""
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user